aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickflickable/data/pressDelay.qml
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-01-14 18:06:27 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-14 20:04:43 +0100
commit679ea13790f217df0bb240fb80fd4ee5208e2084 (patch)
tree06008436e14fea1c0ac367af6f0bdd79ded967be /tests/auto/quick/qquickflickable/data/pressDelay.qml
parent8e17ab6dc6c51339e824f2f1a2cbdf445b482887 (diff)
parentcc0eb9c2aa9032c6a7bf2ab05d1eb913a09fa4f1 (diff)
Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev
Diffstat (limited to 'tests/auto/quick/qquickflickable/data/pressDelay.qml')
-rw-r--r--tests/auto/quick/qquickflickable/data/pressDelay.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickflickable/data/pressDelay.qml b/tests/auto/quick/qquickflickable/data/pressDelay.qml
index 18a5840504..a69c4af6de 100644
--- a/tests/auto/quick/qquickflickable/data/pressDelay.qml
+++ b/tests/auto/quick/qquickflickable/data/pressDelay.qml
@@ -8,6 +8,11 @@ Flickable {
contentHeight: 400
pressDelay: 100
+ property real pressX
+ property real pressY
+ property real releaseX
+ property real releaseY
+
MouseArea {
id: ma
objectName: "mouseArea"
@@ -16,6 +21,15 @@ Flickable {
width: 240
height: 100
+ onPressed: {
+ pressX = mouse.x
+ pressY = mouse.y
+ }
+ onReleased: {
+ releaseX = mouse.x
+ releaseY = mouse.y
+ }
+
Rectangle {
anchors.fill: parent
color: parent.pressed ? 'blue' : 'green'