kcms/decoration: Use "grab" and "grabbing" cursor to communicate dnd state
This commit is contained in:
parent
d7772031b1
commit
2ca81bbe32
2 changed files with 2 additions and 2 deletions
|
@ -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: {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue