summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativemousearea/data/clickandhold.qml
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-04-08 01:16:49 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-04-08 01:16:49 (GMT)
commit198377b456c494272e9a73a872478c5d5ae94af4 (patch)
tree274cd94ec07484342e8ece24a75d8512238a6f3b /tests/auto/declarative/qdeclarativemousearea/data/clickandhold.qml
parent979ad950e257c0c90463ab6c2db7fea4aece3331 (diff)
downloadQt-198377b456c494272e9a73a872478c5d5ae94af4.zip
Qt-198377b456c494272e9a73a872478c5d5ae94af4.tar.gz
Qt-198377b456c494272e9a73a872478c5d5ae94af4.tar.bz2
Don't emit clicked() after pressAndHold()
Task-number: QTBUG-9676
Diffstat (limited to 'tests/auto/declarative/qdeclarativemousearea/data/clickandhold.qml')
-rw-r--r--tests/auto/declarative/qdeclarativemousearea/data/clickandhold.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativemousearea/data/clickandhold.qml b/tests/auto/declarative/qdeclarativemousearea/data/clickandhold.qml
new file mode 100644
index 0000000..e800f98
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativemousearea/data/clickandhold.qml
@@ -0,0 +1,13 @@
+import Qt 4.6
+
+Item {
+ id: root
+ property bool clicked: false
+ property bool held: false
+
+ MouseArea {
+ width: 200; height: 200
+ onClicked: { root.clicked = true }
+ onPressAndHold: { root.held = true }
+ }
+}