aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/touchmouse/data/twoMouseAreas.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/touchmouse/data/twoMouseAreas.qml')
-rw-r--r--tests/auto/quick/touchmouse/data/twoMouseAreas.qml33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/auto/quick/touchmouse/data/twoMouseAreas.qml b/tests/auto/quick/touchmouse/data/twoMouseAreas.qml
new file mode 100644
index 0000000000..a02a6a4444
--- /dev/null
+++ b/tests/auto/quick/touchmouse/data/twoMouseAreas.qml
@@ -0,0 +1,33 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 320
+ height: 480
+ color: "#0c6d49"
+ objectName: "top rect"
+
+ Rectangle {
+ id: greyRectangle
+ objectName: "grey rect"
+ anchors {
+ left: parent.left
+ right: parent.right
+ top: parent.top
+ }
+ height: parent.height / 2
+ color: "grey"
+ }
+
+ MouseArea {
+ objectName: "rear mouseArea"
+ anchors.fill: parent
+ }
+
+ MouseArea {
+ objectName: "front mouseArea"
+ anchors.fill: greyRectangle
+ onPressed: {
+ mouse.accepted = false;
+ }
+ }
+}