Adding tooltip for Library pieces
This commit is contained in:
parent
265bd8383c
commit
03f6871fe1
1 changed files with 16 additions and 1 deletions
|
@ -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 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue