aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/DaemonConsole.qml9
-rw-r--r--components/DaemonManagerDialog.qml9
-rw-r--r--components/PasswordDialog.qml9
-rw-r--r--components/StandardDialog.qml8
4 files changed, 35 insertions, 0 deletions
diff --git a/components/DaemonConsole.qml b/components/DaemonConsole.qml
index 1a1cd82d..e6ddb3a3 100644
--- a/components/DaemonConsole.qml
+++ b/components/DaemonConsole.qml
@@ -59,6 +59,15 @@ Window {
width: 480
height: 280
+ // 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
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
diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml
index f509ada2..db9654cb 100644
--- a/components/PasswordDialog.qml
+++ b/components/PasswordDialog.qml
@@ -56,6 +56,15 @@ Window {
width: 480
height: walletName ? 240 : 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
diff --git a/components/StandardDialog.qml b/components/StandardDialog.qml
index d4243b4b..681c2d3d 100644
--- a/components/StandardDialog.qml
+++ b/components/StandardDialog.qml
@@ -54,6 +54,14 @@ Window {
signal accepted()
signal rejected()
+ // 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)
+ }
function open() {
show()