aboutsummaryrefslogtreecommitdiff
path: root/components/DaemonManagerDialog.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/DaemonManagerDialog.qml')
-rw-r--r--components/DaemonManagerDialog.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/components/DaemonManagerDialog.qml b/components/DaemonManagerDialog.qml
index 0780b513..77908b1f 100644
--- a/components/DaemonManagerDialog.qml
+++ b/components/DaemonManagerDialog.qml
@@ -53,6 +53,15 @@ Window {
width: 480
height: 200
+ // Make window draggable
+ MouseArea {
+ anchors.fill: parent
+ property point lastMousePos: Qt.point(0, 0)
+ onPressed: { lastMousePos = Qt.point(mouseX, mouseY); }
+ onMouseXChanged: root.x += (mouseX - lastMousePos.x)
+ onMouseYChanged: root.y += (mouseY - lastMousePos.y)
+ }
+
ColumnLayout {
id: mainLayout
spacing: 10