Fix acceptance of unhandled mouse events.
authorSimon Hausmann <simon.hausmann@nokia.com>
Fri, 3 Feb 2012 13:41:17 +0000 (14:41 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 6 Feb 2012 20:12:57 +0000 (21:12 +0100)
commiteda4b3dc3c9421a0b3009c11b858f4e5fe1d8ba2
tree9cb4e33784961df6ed97d5211ef3bdf3d5b70498
parent6f6fe27cf48ddcc98deb3c5d9b65a9a00a90bf02
Fix acceptance of unhandled mouse events.

Mouse events not handled by the canvas need to be ignored, in order for
features like touch synthetization to work. In case of the initially
delivered mouse press event, the canvas did not ignore the event if it
was not handled. This patch corrects that and adds an auto-test to verify
the new behaviour.

Change-Id: I8499701f5a161ce1e90a70303aa7ca4ccf2f0b6f
Reviewed-by: Andras Becsi <andras.becsi@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/quick/items/qquickcanvas.cpp
tests/auto/qtquick2/qquickcanvas/tst_qquickcanvas.cpp