Fixing the leftdock to accept Library items
This commit is contained in:
parent
48f051045f
commit
e1c7e319c7
7 changed files with 149 additions and 81 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue