summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativemousearea/data
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-05-13 16:09:00 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-05-13 16:09:00 (GMT)
commitb9f9d811cfb71ab2983f25f3514da958e444de4b (patch)
tree40b0f8571a98ffa6377adb075256e300652343e7 /tests/auto/declarative/qdeclarativemousearea/data
parentb205fca78bcede0b2eefc8c0b12fed040e77eff1 (diff)
parent3d27a19ca009836b812b59c3359db1369d391181 (diff)
downloadQt-b9f9d811cfb71ab2983f25f3514da958e444de4b.zip
Qt-b9f9d811cfb71ab2983f25f3514da958e444de4b.tar.gz
Qt-b9f9d811cfb71ab2983f25f3514da958e444de4b.tar.bz2
Merge branch 4.7 into qt-4.8-from-4.7
Diffstat (limited to 'tests/auto/declarative/qdeclarativemousearea/data')
-rw-r--r--tests/auto/declarative/qdeclarativemousearea/data/preventContextMenu.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativemousearea/data/preventContextMenu.qml b/tests/auto/declarative/qdeclarativemousearea/data/preventContextMenu.qml
new file mode 100644
index 0000000..dcbb5d7
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativemousearea/data/preventContextMenu.qml
@@ -0,0 +1,22 @@
+import QtQuick 1.1
+import Test 1.0
+
+Item {
+ width: 200
+ height: 200
+
+ property alias mouseAreaEnabled: mouseArea.enabled
+ property alias eventsReceived: receiver.eventCount
+
+ ContextMenuEventReceiver {
+ id: receiver
+ anchors.fill: parent
+ }
+
+ MouseArea {
+ id: mouseArea
+ anchors.fill: parent
+ acceptedButtons: Qt.LeftButton | Qt.MiddleButton | Qt.RightButton
+ enabled: true
+ }
+}