effects/desktopgrid: Fix cursor shape being lost while dragging a desktop
DragHandler does not travel along with its target heap, so it only affects the cursor shape when the mouse pointer is directly over it; but when a desktop is dragged far outside, the cursor resets. Besides, this is how we already implemented it in WindowHeapDelegate. FIXED-IN: 5.26
This commit is contained in:
parent
494feb2eea
commit
9889e0df11
1 changed files with 6 additions and 1 deletions
|
@ -88,7 +88,6 @@ FocusScope {
|
||||||
id: dragHandler
|
id: dragHandler
|
||||||
target: heap
|
target: heap
|
||||||
grabPermissions: PointerHandler.ApprovesTakeOverByHandlersOfSameType
|
grabPermissions: PointerHandler.ApprovesTakeOverByHandlersOfSameType
|
||||||
cursorShape: active ? Qt.ClosedHandCursor : Qt.ArrowCursor
|
|
||||||
onActiveChanged: {
|
onActiveChanged: {
|
||||||
if (!active) {
|
if (!active) {
|
||||||
heap.Drag.drop();
|
heap.Drag.drop();
|
||||||
|
@ -162,6 +161,12 @@ FocusScope {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: heap
|
||||||
|
acceptedButtons: Qt.NoButton
|
||||||
|
cursorShape: dragHandler.active ? Qt.ClosedHandCursor : Qt.ArrowCursor
|
||||||
|
}
|
||||||
|
|
||||||
PC3.Control {
|
PC3.Control {
|
||||||
id: desktopLabel
|
id: desktopLabel
|
||||||
anchors.margins: PlasmaCore.Units.largeSpacing
|
anchors.margins: PlasmaCore.Units.largeSpacing
|
||||||
|
|
Loading…
Reference in a new issue