Fixing the leftdock to accept Library items

This commit is contained in:
Chris Cochrun 2022-03-01 09:47:07 -06:00
parent 48f051045f
commit e1c7e319c7
7 changed files with 149 additions and 81 deletions

View file

@ -189,6 +189,7 @@ Item {
Drag.active: dragHandler.drag.active
Drag.hotSpot.x: width / 2
Drag.hotSpot.y: height / 2
Drag.keys: [ "library" ]
states: State {
name: "dragged"
@ -210,8 +211,10 @@ Item {
target: songListItem
onActiveChanged: {
if (dragHandler.drag.active) {
draggedLibraryItem = songLibraryList.currentItem
showPassiveNotification(index)
dragSongTitle = title
showPassiveNotification(dragSongTitle)
} else {
songListItem.Drag.drop()
}
}
filterChildren: true