Commit e08eb540 authored by Nate Graham's avatar Nate Graham 💤
Browse files

[KCM] Make multi-screen draggability more obvious

Summary:
Add a label and use a grabby hand cursor when hovering over a screen when there are
more than one.

BUG: 412303
FIXED-IN: 5.18.0

Test Plan: {F7542106}

Reviewers: romangg, #plasma, #vdg

Reviewed By: romangg, #plasma

Subscribers: GB_2, davidedmundson, broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24479
parent f50a51eb
......@@ -264,5 +264,13 @@ Rectangle {
model.position = getAbsolutePosition(Qt.point(newX, newY));
}
}
// So we can show a grabby hand cursor when hovered over
MouseArea {
anchors.fill: parent
cursorShape: Qt.SizeAllCursor
acceptedButtons: Qt.NoButton // Otherwise it interferes with the drag handler
visible: kcm.outputModel && kcm.outputModel.rowCount() > 1
}
}
......@@ -49,6 +49,21 @@ Controls.ScrollView {
Component.onCompleted: background.visible = true;
Kirigami.Heading {
z: 90
anchors {
top: parent.top
left: parent.left
right: parent.right
margins: units.smallSpacing
}
level: 4
opacity: 0.6
horizontalAlignment: Text.AlignHCenter
text: i18n("Drag screens to re-arrange them")
visible: kcm.outputModel && kcm.outputModel.rowCount() > 1
}
Row {
z: 90
anchors {
......
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