kcms/decoration: Use "grab" and "grabbing" cursor to communicate dnd state

This commit is contained in:
Vlad Zahorodnii 2024-05-31 14:56:32 +03:00
parent d7772031b1
commit 2ca81bbe32
2 changed files with 2 additions and 2 deletions

View file

@ -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: {

View file

@ -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();