File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/palette/qml/MuseScore/Palette/internal Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -570,9 +570,15 @@ StyledGridView {
570
570
if (! ui .isSystemDragSupported ) {
571
571
draggedIcon .Drag .mimeData = model .mimeData
572
572
draggedIcon .Drag .active = dragActive
573
+ } else {
574
+ Qt .callLater (paletteCell .updateDragActive )
573
575
}
574
576
}
575
577
578
+ function updateDragActive () {
579
+ paletteCell .Drag .active = mouseArea .drag .active
580
+ }
581
+
576
582
mouseArea .onPressed : function (e ) {
577
583
paletteCell .beginDrag ()
578
584
}
@@ -595,7 +601,6 @@ StyledGridView {
595
601
removeSelectedCells ()
596
602
}
597
603
598
- Drag .active : ui .isSystemDragSupported ? mouseArea .drag .active : false
599
604
Drag .dragType : ui .isSystemDragSupported ? Drag .Automatic : Drag .Internal
600
605
Drag .supportedActions : Qt .CopyAction | (model .editable ? Qt .MoveAction : 0 )
601
606
Drag .mimeData : Drag .active ? mimeData : {}
You can’t perform that action at this time.
0 commit comments