Don't forcibly accept touch events if mouse event synthesis is disabled
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Thu, 24 Apr 2014 14:46:28 +0000 (16:46 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 25 Apr 2014 13:43:10 +0000 (15:43 +0200)
commit03e4fb974a0d9196cd030276ba3534c22a35d446
tree9cb9b1584229776be4e7d09b882ce6a24e760356
parent1873e4f213a94da5774a5243a796fb00f0ab8713
Don't forcibly accept touch events if mouse event synthesis is disabled

Instead of always accepting touch events, do that only if we are
generating mouse events for non accepted ones. This enables
QQuickWindow subclasses to detect if a touch event was indeed
handled by QQuickWindow.

Change-Id: I73512fb3597131c2296d6cdc7b3d5c8454b159b6
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
src/quick/items/qquickwindow.cpp