pressed and pressedButtons don't work when multiple buttons are pressed
authorMartin Jones <martin.jones@nokia.com>
Tue, 10 Jul 2012 06:40:06 +0000 (16:40 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Jul 2012 15:37:55 +0000 (17:37 +0200)
commitdd0caf5ad611311621696177adcaf87c33f88a03
treeebc46c8e894a68a6a1fb9e9a6a9ba9da81e48f3e
parentb5eb3d69b40c4b750a1bbece7be2acbe7cf918e3
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>
src/quick/items/qquickcanvas.cpp
src/quick/items/qquickmousearea.cpp
src/quick/items/qquickmousearea_p.h
src/quick/items/qquickmousearea_p_p.h
tests/auto/quick/qquickmousearea/data/simple.qml [new file with mode: 0644]
tests/auto/quick/qquickmousearea/tst_qquickmousearea.cpp