Add hint for touch -> mouse event synthesizing
authorMorten Johan Sorvig <morten.sorvig@nokia.com>
Wed, 8 Aug 2012 09:44:39 +0000 (11:44 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 22 Aug 2012 05:01:17 +0000 (07:01 +0200)
commit6c1670d8c273819435867c42725c0db0eee597dc
tree9de8f59b14624cb8c9678fa47820771f95e5b9d4
parent09dd19df5c4b708960e5aade568eb15d996ef200
Add hint for touch -> mouse event synthesizing

Commit 7808ec79 changes QApplication to synthesize
mouse events from (unhandled) touch events.

On Mac OS X this creates a conflict for two-finger
scroll swipes, which generates both touch events and
mouse wheel events: scrolling in QTextEdit will also
select the text.

Add a SynthesizeMouseFromTouchEvents platform style
hint that enables the event synthesising. Set to true
by default and false in Cocoa.

Change-Id: I1ffa5a141476aa38b81ce92a87eff676c7ec2276
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
src/gui/kernel/qplatformintegration.cpp
src/gui/kernel/qplatformintegration.h
src/plugins/platforms/cocoa/qcocoaintegration.mm
src/widgets/kernel/qapplication.cpp
tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp
tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp