aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickflickable/data
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2012-03-15 14:58:03 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-20 04:24:32 +0100
commit5d901a7435e98629b7f50488dbd45a1635bf767b (patch)
treecff467858d17fb21f9a120023fca5a7e72b2a847 /tests/auto/quick/qquickflickable/data
parent610df5cdf87b9e1566b01a273fe67905b035cb93 (diff)
Restore view to sensible position if grab is cancelled.
If the mouse grab is stolen, return to allowed bounds. Change-Id: Icc44da32ff62bed273f0ccbb5498766981cdf9a4 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquickflickable/data')
-rw-r--r--tests/auto/quick/qquickflickable/data/cancel.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickflickable/data/cancel.qml b/tests/auto/quick/qquickflickable/data/cancel.qml
new file mode 100644
index 0000000000..d1c3fddbf2
--- /dev/null
+++ b/tests/auto/quick/qquickflickable/data/cancel.qml
@@ -0,0 +1,15 @@
+import QtQuick 2.0
+
+Flickable {
+ width: 200; height: 200
+ contentWidth: row.width; contentHeight: row.height
+
+ Row {
+ id: row
+ objectName: "row"
+ Repeater {
+ model: 4
+ Rectangle { width: 400; height: 600; color: "yellow"; border.width: 1 }
+ }
+ }
+}