diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-05-13 16:09:00 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-05-13 16:09:00 (GMT) |
commit | b9f9d811cfb71ab2983f25f3514da958e444de4b (patch) | |
tree | 40b0f8571a98ffa6377adb075256e300652343e7 /tests/auto/declarative/qdeclarativemousearea/data | |
parent | b205fca78bcede0b2eefc8c0b12fed040e77eff1 (diff) | |
parent | 3d27a19ca009836b812b59c3359db1369d391181 (diff) | |
download | Qt-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.qml | 22 |
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 + } +} |