forked from Public/monero-gui
changed window moving behavior
This commit is contained in:
31
main.qml
31
main.qml
@@ -98,21 +98,6 @@ ApplicationWindow {
|
||||
anchors.fill: parent
|
||||
clip: true
|
||||
|
||||
MouseArea {
|
||||
property var previousPosition
|
||||
anchors.fill: parent
|
||||
|
||||
onPressed: previousPosition = Qt.point(mouseX, mouseY)
|
||||
onPositionChanged: {
|
||||
if (pressedButtons == Qt.LeftButton) {
|
||||
var dx = mouseX - previousPosition.x
|
||||
var dy = mouseY - previousPosition.y
|
||||
appWindow.x += dx
|
||||
appWindow.y += dy
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LeftPanel {
|
||||
id: leftPanel
|
||||
anchors.left: parent.left
|
||||
@@ -148,7 +133,6 @@ ApplicationWindow {
|
||||
id: tipItem
|
||||
text: "send to the same destination"
|
||||
visible: false
|
||||
z: 100
|
||||
}
|
||||
|
||||
BasicPanel {
|
||||
@@ -287,6 +271,21 @@ ApplicationWindow {
|
||||
if(yes) goToBasicAnimation.start()
|
||||
else goToProAnimation.start()
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
property var previousPosition
|
||||
anchors.fill: parent
|
||||
propagateComposedEvents: true
|
||||
onPressed: previousPosition = Qt.point(mouseX, mouseY)
|
||||
onPositionChanged: {
|
||||
if (pressedButtons == Qt.LeftButton) {
|
||||
var dx = mouseX - previousPosition.x
|
||||
var dy = mouseY - previousPosition.y
|
||||
appWindow.x += dx
|
||||
appWindow.y += dy
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user