summaryrefslogtreecommitdiffstats
path: root/src/gui/qml/osd.qml
diff options
context:
space:
mode:
authorLubos Dolezel <lubos@dolezel.info>2015-06-11 15:16:39 +0200
committerLubos Dolezel <lubos@dolezel.info>2015-06-11 15:16:39 +0200
commitbaedd87c10dabb9178ec870ea43185f4c34795ea (patch)
treefd0e5d9b795796f4c6dcdd72b17960f7f13a45af /src/gui/qml/osd.qml
parentc0fb261ea49f638b49ed68c5eb5385c11ab8d407 (diff)
downloadtwinkle-baedd87c10dabb9178ec870ea43185f4c34795ea.tar
twinkle-baedd87c10dabb9178ec870ea43185f4c34795ea.tar.gz
twinkle-baedd87c10dabb9178ec870ea43185f4c34795ea.tar.lz
twinkle-baedd87c10dabb9178ec870ea43185f4c34795ea.tar.xz
twinkle-baedd87c10dabb9178ec870ea43185f4c34795ea.zip
Remember OSD/popup location (resolves #16)
Diffstat (limited to 'src/gui/qml/osd.qml')
-rw-r--r--src/gui/qml/osd.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/qml/osd.qml b/src/gui/qml/osd.qml
index cfbf85e..42f7b1f 100644
--- a/src/gui/qml/osd.qml
+++ b/src/gui/qml/osd.qml
@@ -1,11 +1,13 @@
import QtQuick 1.1
Rectangle {
- id: rectangle1
+ id: rectangleOsd
width: 310
height: 55
color: "black"
+ signal moved
+
Image {
id: image1
anchors.bottom: parent.bottom
@@ -87,6 +89,8 @@ Rectangle {
var dy = mouseY - previousPosition.y
viewerWidget.pos = Qt.point(viewerWidget.pos.x + dx,
viewerWidget.pos.y + dy)
+
+ rectangleOsd.moved()
}
}
}