Make touch event delivery in the canvas reentrant
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Tue, 24 Apr 2012 07:51:59 +0000 (10:51 +0300)
committerQt by Nokia <qt-info@nokia.com>
Wed, 25 Apr 2012 07:47:25 +0000 (09:47 +0200)
commitb8bb9d7561b6be0557cde93ba3c5390a50f14087
tree5b3760f5fb6591f9066bc0dc4fe178bab1354778
parent9b1299e0db11bc42acbbc95f24ef30640aecc930
Make touch event delivery in the canvas reentrant

At the moment the unlikely case of spinning the event loop from a
QQuickItem event handler for TouchBegin is not handled properly: It
will end up not delivering the subsequent TouchUpdate and TouchEnd
events to the item, leaving it in a state that should not normally
happen.

Change-Id: I668d065c9cf1a299bfd9268a9125d7a7e32f6786
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
src/quick/items/qquickcanvas.cpp
tests/auto/quick/qquickcanvas/tst_qquickcanvas.cpp