aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickmousearea/data
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2016-06-20 11:57:43 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-07-07 19:10:30 +0000
commit733b20af44d4400faa61e02dfb2feae8badaf003 (patch)
treea1a7e7ad19b8ac3622fb218afb7f313ae0bdc29a /tests/auto/quick/qquickmousearea/data
parent28ed215281bb4ee687d2a2bfb7d6fdc1001c082b (diff)
MouseArea: add autotest for subtreeHoverEnabled
Verify the fix in f7e462b. Task-number: QTBUG-54019 Change-Id: Ia9846f9b79473ea4f72e895320cf01d5d85cc1a3 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'tests/auto/quick/qquickmousearea/data')
-rw-r--r--tests/auto/quick/qquickmousearea/data/qtbug54019.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickmousearea/data/qtbug54019.qml b/tests/auto/quick/qquickmousearea/data/qtbug54019.qml
new file mode 100644
index 0000000000..75cca2691a
--- /dev/null
+++ b/tests/auto/quick/qquickmousearea/data/qtbug54019.qml
@@ -0,0 +1,21 @@
+import QtQuick 2.7
+
+Item {
+ width: 200
+ height: 200
+ MouseArea {
+ id: ma
+ property string str: "foo!"
+ width: 150; height: 150
+ hoverEnabled: true
+
+ Rectangle {
+ anchors.fill: parent
+ color: ma.containsMouse ? "lightsteelblue" : "gray"
+ }
+ Text {
+ text: ma.str
+ textFormat: Text.PlainText // consequently Text does not care about hover events
+ }
+ }
+}