qt5base-lts/tests/auto/widgets/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
..
qaction Update copyright headers 2015-02-11 06:49:51 +00:00
qactiongroup Update copyright headers 2015-02-11 06:49:51 +00:00
qapplication Decide whether to synthesize mouse events on a per device basis 2015-02-25 13:31:41 +00:00
qboxlayout Update copyright headers 2015-02-11 06:49:51 +00:00
qdesktopwidget Update copyright headers 2015-02-11 06:49:51 +00:00
qformlayout Update copyright headers 2015-02-11 06:49:51 +00:00
qgridlayout Merge remote-tracking branch 'origin/5.4' into 5.5 2015-02-24 21:02:08 +01:00
qlayout Update copyright headers 2015-02-11 06:49:51 +00:00
qshortcut Update copyright headers 2015-02-11 06:49:51 +00:00
qsizepolicy QtWidgets: assorted migrations to QString::asprintf 2015-02-12 19:39:49 +00:00
qstackedlayout Update copyright headers 2015-02-11 06:49:51 +00:00
qtooltip Update copyright headers 2015-02-11 06:49:51 +00:00
qwidget Decide whether to synthesize mouse events on a per device basis 2015-02-25 13:31:41 +00:00
qwidget_window Update copyright headers 2015-02-11 06:49:51 +00:00
qwidgetaction Update copyright headers 2015-02-11 06:49:51 +00:00
qwidgetmetatype Update copyright headers 2015-02-11 06:49:51 +00:00
qwidgetsvariant Update copyright headers 2015-02-11 06:49:51 +00:00
qwindowcontainer Update copyright headers 2015-02-11 06:49:51 +00:00
kernel.pro Introducing QWidget::createWindowContainer() 2013-01-25 14:11:07 +01:00