fixing bug drag highlight doesn't disappear after canceling drag
This commit is contained in:
parent
97d26278cb
commit
37c7038f6f
3 changed files with 9 additions and 3 deletions
|
@ -253,12 +253,13 @@ Item {
|
|||
dragItemFontSize = fontSize;
|
||||
draggedLibraryItem = self;
|
||||
} else {
|
||||
songListItem.Drag.drop()
|
||||
songListItem.Drag.drop();
|
||||
dragHighlightLine.visible = false;
|
||||
}
|
||||
}
|
||||
filterChildren: true
|
||||
threshold: 10
|
||||
/* onDropped: songDropped = true; */
|
||||
/* onDropped: dragHighlightLine.visible = false; */
|
||||
}
|
||||
MouseArea {
|
||||
id: songClickHandler
|
||||
|
@ -555,6 +556,7 @@ Item {
|
|||
dragItemBackground = filePath;
|
||||
} else {
|
||||
videoListItem.Drag.drop()
|
||||
dragHighlightLine.visible = false;
|
||||
}
|
||||
}
|
||||
filterChildren: true
|
||||
|
@ -837,6 +839,7 @@ Item {
|
|||
dragItemBackground = filePath;
|
||||
} else {
|
||||
imageListItem.Drag.drop()
|
||||
dragHighlightLine.visible = false;
|
||||
}
|
||||
}
|
||||
filterChildren: true
|
||||
|
@ -1118,6 +1121,7 @@ Item {
|
|||
dragItemBackground = filePath;
|
||||
} else {
|
||||
presListItem.Drag.drop()
|
||||
dragHighlightLine.visible = false;
|
||||
}
|
||||
}
|
||||
filterChildren: true
|
||||
|
|
|
@ -44,6 +44,8 @@ Controls.Page {
|
|||
|
||||
property var currentWindow: presentation
|
||||
|
||||
property var dragHighlightLine
|
||||
|
||||
Component.onCompleted: {
|
||||
changeServiceItem(0);
|
||||
presentation.forceActiveFocus();
|
||||
|
|
|
@ -366,7 +366,7 @@ Item {
|
|||
height: 4
|
||||
color: Kirigami.Theme.hoverColor
|
||||
visible: false
|
||||
|
||||
Component.onCompleted: dragHighlightLine = dropHighlightLine
|
||||
}
|
||||
Canvas {
|
||||
/* asynchronous: true; */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue