aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickmousearea/data
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2012-07-10 16:40:06 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-11 17:37:55 +0200
commitdd0caf5ad611311621696177adcaf87c33f88a03 (patch)
treeebc46c8e894a68a6a1fb9e9a6a9ba9da81e48f3e /tests/auto/quick/qquickmousearea/data
parentb5eb3d69b40c4b750a1bbece7be2acbe7cf918e3 (diff)
pressed and pressedButtons don't work when multiple buttons are pressed
The pressed property would react to any mouse event, regardless of whether it was in acceptedButtons, or there were other buttons still pressed. It will now remain true while any button in acceptedButtons is pressed. The pressedButtons property could contain buttons not in the acceptedButtons mask. It will now only contain buttons that are in the acceptedButtons mask. Task-number: QTBUG-26458 Change-Id: I6b25cc36a58c113de062d530761dc179d7ef4a5a Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquickmousearea/data')
-rw-r--r--tests/auto/quick/qquickmousearea/data/simple.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickmousearea/data/simple.qml b/tests/auto/quick/qquickmousearea/data/simple.qml
new file mode 100644
index 0000000000..56d561e5af
--- /dev/null
+++ b/tests/auto/quick/qquickmousearea/data/simple.qml
@@ -0,0 +1,12 @@
+import QtQuick 2.0
+
+Rectangle {
+ id: whiteRect
+ width: 200
+ height: 200
+ color: "white"
+ MouseArea {
+ objectName: "mousearea"
+ anchors.fill: parent
+ }
+}