Adding tooltip for Library pieces

This commit is contained in:
Chris Cochrun 2023-11-20 05:36:06 -06:00
parent 265bd8383c
commit 03f6871fe1

View file

@ -306,6 +306,18 @@ ColumnLayout {
id: dragHandler id: dragHandler
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
Controls.ToolTip {
text: {
if (libraryType == "song")
title + "\n" + author
else if (fileValidation)
title + "\n" + filePath;
else
"file is missing"
}
}
drag { drag {
target: listItem target: listItem
onActiveChanged: { onActiveChanged: {
@ -321,6 +333,8 @@ ColumnLayout {
filterChildren: true filterChildren: true
threshold: 10 threshold: 10
/* onDropped: dragHighlightLine.visible = false; */ /* onDropped: dragHighlightLine.visible = false; */
} }
MouseArea { MouseArea {
id: clickHandler id: clickHandler
@ -379,6 +393,7 @@ ColumnLayout {
} }
} }
} }
} }
} }