Skip to content
Snippets Groups Projects
Commit 803a3fd6 authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by François Cartegnie
Browse files

qml: do not delay owning the drag in ListViewExt

Qt 5.15 used to cause `QDragEnterEvent` to be
posted before `QDragLeaveEvent` is posted.

The ordering seems to be fixed with Qt 6. Qt 6.2
and 6.7 are checked.
parent 9cae3668
No related branches found
No related tags found
1 merge request!6045qt: remove Qt 5.15 drag event order inversion workaround
Pipeline #518174 passed with stage
in 18 minutes and 12 seconds
......@@ -365,14 +365,9 @@ ListView {
function updateItemContainsDrag(item, set) {
if (set) {
// This callLater is needed because in Qt 5.15,
// an item might set itemContainsDrag, before
// the owning item releases it.
Qt.callLater(function() {
if (itemContainsDrag)
console.debug(item + " set itemContainsDrag before it was released!")
itemContainsDrag = item
})
if (itemContainsDrag)
console.debug(item + " set itemContainsDrag before it was released!")
itemContainsDrag = item
} else {
if (itemContainsDrag !== item)
console.debug(item + " released itemContainsDrag that is not owned!")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment