aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickpathview/data/nestedmousearea.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickpathview/data/nestedmousearea.qml')
-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
+ }
+ }
+ }
+}