diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-09-13 05:16:57 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-09-13 05:16:57 (GMT) |
commit | ca36badc8925788e06910fab5200633d40e0f328 (patch) | |
tree | 369ee7fb097938326363c5acd6ef2404a5d34061 /tests/auto/declarative/qdeclarativemousearea/data | |
parent | 491f5f9cc6da171155c613295018b9d54bb683c9 (diff) | |
download | Qt-ca36badc8925788e06910fab5200633d40e0f328.zip Qt-ca36badc8925788e06910fab5200633d40e0f328.tar.gz Qt-ca36badc8925788e06910fab5200633d40e0f328.tar.bz2 |
When onDoubleClicked: is handled don't emit a second onPressed/onClicked
Task-number: QTBUG-12250
Reviewed-by: Michael Brasser
Diffstat (limited to 'tests/auto/declarative/qdeclarativemousearea/data')
-rw-r--r-- | tests/auto/declarative/qdeclarativemousearea/data/doubleclick.qml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativemousearea/data/doubleclick.qml b/tests/auto/declarative/qdeclarativemousearea/data/doubleclick.qml new file mode 100644 index 0000000..9cddf1b --- /dev/null +++ b/tests/auto/declarative/qdeclarativemousearea/data/doubleclick.qml @@ -0,0 +1,14 @@ +import Qt 4.7 + +Item { + id: root + property int clicked: 0 + property int doubleClicked: 0 + + MouseArea { + width: 200; height: 200 + onClicked: { root.clicked++ } + onDoubleClicked: { root.doubleClicked++ } + } +} + |