aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickpathview/data
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den.exter@jollamobile.com>2013-09-27 14:26:48 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-01 01:50:49 +0200
commita8b27d974a4ced654a4566b6a9822ed92956a2d2 (patch)
treee6ac77a3cf040c8a342f0ae8c3098dcae58fcd78 /tests/auto/quick/qquickpathview/data
parent23793482e9b187441203fb629b459245c504dfba (diff)
Fix PathView stealing mouse grab from its child items.
Apply the improvements that have been applied to Flickables handling of child items over time to PathView to bring its behavior back in line. Task-number: QTBUG-33699 Change-Id: I76a412d75c48f9cf2f12f5f6f1aa01ff62d06364 Reviewed-by: Joona Petrell <joona.petrell@jollamobile.com> Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
Diffstat (limited to 'tests/auto/quick/qquickpathview/data')
-rw-r--r--tests/auto/quick/qquickpathview/data/nestedmousearea.qml36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickpathview/data/nestedmousearea.qml b/tests/auto/quick/qquickpathview/data/nestedmousearea.qml
new file mode 100644
index 0000000000..bdd28650e2
--- /dev/null
+++ b/tests/auto/quick/qquickpathview/data/nestedmousearea.qml
@@ -0,0 +1,36 @@
+import QtQuick 2.0
+
+PathView {
+ width: 400
+ height: 400
+
+ model: 2
+ path: Path {
+ startX: -300
+ startY: 200
+ PathLine {
+ x: 700
+ y: 200
+ }
+ }
+ delegate: Rectangle {
+ width: 300
+ height: 300
+ border.width: 5
+ color: "lightsteelblue"
+
+ Rectangle {
+ x: 100
+ y: 100
+ width: 100
+ height: 100
+
+ color: "yellow"
+
+ MouseArea {
+ drag.target: parent
+ anchors.fill: parent
+ }
+ }
+ }
+}