aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickflickable/data
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2016-10-01 13:18:08 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-10-03 09:26:55 +0000
commitb0bc5f81eb3ef5f5e99bd0e49ca9a7c33b131260 (patch)
tree3464b0eaf2eccaa9b84d60dfab9f5289948072e5 /tests/auto/quick/qquickflickable/data
parent5a59b11ce8c4230e3a7609e3ca46119340153052 (diff)
Add a test that verifies that keepMouseGrab works
Change-Id: I17c736994f05a63574b518b1d23facde001eacbf Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickflickable/data')
-rw-r--r--tests/auto/quick/qquickflickable/data/keepGrab.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickflickable/data/keepGrab.qml b/tests/auto/quick/qquickflickable/data/keepGrab.qml
new file mode 100644
index 0000000000..32546658d0
--- /dev/null
+++ b/tests/auto/quick/qquickflickable/data/keepGrab.qml
@@ -0,0 +1,22 @@
+import QtQuick 2.3
+
+Flickable {
+ id: flickable
+ width: 400
+ height: 400
+ contentWidth: 800
+ contentHeight: 800
+
+ Rectangle {
+ x: 200
+ y: 200
+ width: 400
+ height: 400
+ color: "green"
+ MouseArea {
+ id: ma
+ objectName: "ma"
+ anchors.fill: parent
+ }
+ }
+}