qt5base-lts/tests/auto/gui/kernel
Alexander Volkov 76922a706f Decide whether to synthesize mouse events on a per device basis
Currently Qt uses the QPlatformIntegration::StyleHint
SynthesizeMouseFromTouchEvents to check whether to synthesize mouse
events from touch events. But not only platform plugins can produce
touch events, they can be created by e.g. QTest::touchEvent() and in
this case we almost definitely need synthesizing regardless of the
platform.

This commit introduces a QTouchDevice::MouseEmulation capability which
replaces use of the QPlatformIntegration::SynthesizeMouseFromTouchEvents.
So it's possible to pass QTouchDevice without this capability to
QTest::touchEvent() and be sure that mouse events will be synthesized.
Notice that touch pads always emulate mouse events.
As a result we can activate some tests which were disabled for specific
platform configurations by commits 6c1670d8c2
and e9760f1559.

Change-Id: Idc82fa4007a095fc1cb5934979361b0023d2b793
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
2015-02-25 13:31:41 +00:00
..
qbackingstore Update copyright headers 2015-02-11 06:49:51 +00:00
qclipboard Update copyright headers 2015-02-11 06:49:51 +00:00
qdrag Update copyright headers 2015-02-11 06:49:51 +00:00
qevent Update copyright headers 2015-02-11 06:49:51 +00:00
qfileopenevent Update copyright headers 2015-02-11 06:49:51 +00:00
qguiapplication Update copyright headers 2015-02-11 06:49:51 +00:00
qguieventdispatcher QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
qguieventloop Add auto-test for running the QEventLoop test with the GUI dispatcher 2013-08-12 14:27:57 +02:00
qguimetatype Update copyright headers 2015-02-11 06:49:51 +00:00
qguitimer QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
qguivariant Update copyright headers 2015-02-11 06:49:51 +00:00
qinputmethod Update copyright headers 2015-02-11 06:49:51 +00:00
qkeysequence Make the QPlatformTheme::keyBindings() search deterministic 2015-02-12 19:40:21 +00:00
qmouseevent Update copyright headers 2015-02-11 06:49:51 +00:00
qmouseevent_modal Update copyright headers 2015-02-11 06:49:51 +00:00
qopenglwindow Update copyright headers 2015-02-11 06:49:51 +00:00
qpalette Update copyright headers 2015-02-11 06:49:51 +00:00
qpixelformat Update copyright headers 2015-02-11 06:49:51 +00:00
qrasterwindow Update copyright headers 2015-02-11 06:49:51 +00:00
qscreen Update copyright headers 2015-02-11 06:49:51 +00:00
qsurfaceformat Update copyright headers 2015-02-11 06:49:51 +00:00
qtouchevent Update copyright headers 2015-02-11 06:49:51 +00:00
qwindow Decide whether to synthesize mouse events on a per device basis 2015-02-25 13:31:41 +00:00
kernel.pro Introduce QRasterWindow 2014-08-05 16:47:42 +02:00