From 2ca81bbe32b48129d17e4bd520d4e1fadbfcc447 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 31 May 2024 14:56:32 +0300 Subject: [PATCH] kcms/decoration: Use "grab" and "grabbing" cursor to communicate dnd state --- src/kcms/decoration/ui/ButtonGroup.qml | 2 +- src/kcms/decoration/ui/Buttons.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kcms/decoration/ui/ButtonGroup.qml b/src/kcms/decoration/ui/ButtonGroup.qml index f504c76bd7..d6bd506db6 100644 --- a/src/kcms/decoration/ui/ButtonGroup.qml +++ b/src/kcms/decoration/ui/ButtonGroup.qml @@ -39,7 +39,7 @@ ListView { } MouseArea { id: dragArea - cursorShape: Qt.SizeAllCursor + cursorShape: drag.target.Drag.active ? Qt.ClosedHandCursor : Qt.OpenHandCursor anchors.fill: parent drag.target: button onReleased: { diff --git a/src/kcms/decoration/ui/Buttons.qml b/src/kcms/decoration/ui/Buttons.qml index c22165a7f6..ab423ae3f6 100644 --- a/src/kcms/decoration/ui/Buttons.qml +++ b/src/kcms/decoration/ui/Buttons.qml @@ -211,7 +211,7 @@ Rectangle { id: dragArea anchors.fill: availableButton drag.target: availableButton - cursorShape: Qt.SizeAllCursor + cursorShape: availableButton.Drag.active ? Qt.ClosedHandCursor : Qt.OpenHandCursor onReleased: { if (availableButton.Drag.target) { availableButton.Drag.drop();