aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickdeliveryagent/data/tapHandler.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickdeliveryagent/data/tapHandler.qml')
-rw-r--r--tests/auto/quick/qquickdeliveryagent/data/tapHandler.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickdeliveryagent/data/tapHandler.qml b/tests/auto/quick/qquickdeliveryagent/data/tapHandler.qml
new file mode 100644
index 0000000000..e2ba88dcde
--- /dev/null
+++ b/tests/auto/quick/qquickdeliveryagent/data/tapHandler.qml
@@ -0,0 +1,14 @@
+import QtQuick
+
+Rectangle {
+ id: root
+ objectName: "root"
+ color: th.pressed ? "goldenrod" : "khaki"
+ border.color: "black"
+ width: 100; height: 100
+ TapHandler {
+ id: th
+ objectName: root.objectName + "Tap"
+ onTapped: console.log(this, objectName)
+ }
+}