QQuickCanvas::event should return true if the touch event was accepted
authorAndras Becsi <andras.becsi@nokia.com>
Mon, 23 Jan 2012 16:38:25 +0000 (17:38 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Jan 2012 04:49:48 +0000 (05:49 +0100)
commit1ea7442ec3a3560697c178c5b37ac428e95560f6
tree0c0d7721550e7aca77244efc6b99d03db73160b9
parent39f4b17c18b55bb2abe2be8e39bff8d8cf8f3b10
QQuickCanvas::event should return true if the touch event was accepted

If QQuickCanvas::event delivers a touch event and it is accepted
the control ends up in QWindow::event which invalidates the event.
These touch events end up as if they were unhadled which causes Qt to
automatically synthesize mouse events even for accepted touch events.

Add a unit test for testing this behavior.

Change-Id: I83d4aeafee1ea7ec5d219e4b45aae699188717c3
Reviewed-by: Zeno Albisser <zeno.albisser@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/quick/items/qquickcanvas.cpp
tests/auto/qtquick2/qquickitem/tst_qquickitem.cpp