marcin
2014-07-22 14:16:05 +02:00
parent 2d41ff762c
commit 0e5dbbc197
6 changed files with 112 additions and 59 deletions

View File

@@ -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
}
}
}
}
}
}