Adding tooltip for Library pieces
This commit is contained in:
parent
265bd8383c
commit
03f6871fe1
1 changed files with 16 additions and 1 deletions
|
@ -219,7 +219,7 @@ ColumnLayout {
|
|||
|
||||
Component {
|
||||
id: libraryDelegate
|
||||
Item{
|
||||
Item {
|
||||
implicitWidth: ListView.view.width
|
||||
height: selectedLibrary == libraryType ? 50 : 0
|
||||
Kirigami.BasicListItem {
|
||||
|
@ -306,6 +306,18 @@ ColumnLayout {
|
|||
id: dragHandler
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
|
||||
Controls.ToolTip {
|
||||
text: {
|
||||
if (libraryType == "song")
|
||||
title + "\n" + author
|
||||
else if (fileValidation)
|
||||
title + "\n" + filePath;
|
||||
else
|
||||
"file is missing"
|
||||
}
|
||||
}
|
||||
|
||||
drag {
|
||||
target: listItem
|
||||
onActiveChanged: {
|
||||
|
@ -321,6 +333,8 @@ ColumnLayout {
|
|||
filterChildren: true
|
||||
threshold: 10
|
||||
/* onDropped: dragHighlightLine.visible = false; */
|
||||
|
||||
|
||||
}
|
||||
MouseArea {
|
||||
id: clickHandler
|
||||
|
@ -379,6 +393,7 @@ ColumnLayout {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue