From b74aa1a5856842a12b61033fbd8724d5d456da76 Mon Sep 17 00:00:00 2001 From: mmbyday Date: Tue, 30 Apr 2019 22:00:39 -0700 Subject: [PATCH] dialogs: fix titlebar disabledness --- components/NewPasswordDialog.qml | 9 --------- components/PassphraseDialog.qml | 9 --------- 2 files changed, 18 deletions(-) diff --git a/components/NewPasswordDialog.qml b/components/NewPasswordDialog.qml index 173fe170..3f3c4f38 100644 --- a/components/NewPasswordDialog.qml +++ b/components/NewPasswordDialog.qml @@ -82,15 +82,6 @@ Item { width: 480 height: 360 - // 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 { z: inactiveOverlay.z + 1 id: mainLayout diff --git a/components/PassphraseDialog.qml b/components/PassphraseDialog.qml index 9ae57db4..79dd2f19 100644 --- a/components/PassphraseDialog.qml +++ b/components/PassphraseDialog.qml @@ -94,15 +94,6 @@ Item { width: 480 height: 360 - // 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 { z: inactiveOverlay.z + 1 id: mainLayout