Commit 3044e078 authored by Nate Graham's avatar Nate Graham 🔩
Browse files

[Panel] Use open/closed grabby hand to communicate that panel widgets are draggable

Summary:
Improve the visual hints that widgets are draggable while in panel edit mode. Needed to
bump the QtQuick import to make `mouseArea.containsPress` available.

Test Plan: {F7818223}

Reviewers: #vdg, #plasma, apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25998
parent 757b87ba
......@@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA.
*/
import QtQuick 2.1
import QtQuick 2.5
import QtQuick.Layouts 1.0
import org.kde.plasma.core 2.0 as PlasmaCore
......@@ -64,7 +64,11 @@ MouseArea {
}
}
} else {
configurationArea.cursorShape = Qt.ArrowCursor;
if (configurationArea.containsPress) {
configurationArea.cursorShape = Qt.ClosedHandCursor;
} else {
configurationArea.cursorShape = Qt.OpenHandCursor;
}
}
if (pressed) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment