qt5base-lts/tests/auto/other
Laszlo Agocs 4222603f8e Extend touch events.
The capability flags indicate which information is valid in the touch
points. Previously there was no way to tell if e.g. the value returned
by pressure() is actually the value provided by the driver/device or
it is just something bogus due to pressure not being supported.

The points' flags return information about the individual touch
points. One use case is to differentiate between touches made by
finger and pen.

Velocity, if available, is now also exposed.

Each touch point can now contain an additional list of "raw"
positions. These points are not reported individually but are taken
into account in some way by the underlying device and drivers to
generate the final, "accurate" touch point. In case the underlying
drivers expose these additional positions, they are made available in
the lists returned by the touch points' rawScreenPosition().

The raw positions are only available in screen coordinates to prevent
wasting time with mapping from global positions in applications that
do not use this data. Instead, apps can query the QWindow to which the
touch event was sent via QTouchEvent::window() and can call
mapFromGlobal() manually if they need local raw positions.

The capability and device type information is now held in a new
QTouchDevice class. Each touch event will contain only a pointer to
one of the global QTouchDevice instances. On top of type and
capability, the new class also contains a name which can be used to
differentiate between multiple touch input devices (i.e. to tell from
which one a given QTouchEvent originates from).

The introduction of QTouchDevice has three implications: The
QTouchEvent constructor and QWindowSystemInterface::handleTouchEvent
need to be changed (to pass a QTouchDevice pointer instead of merely a
device type value), and each platform or generic plug-in is now
responsible for registering one or more devices using the new API
QWindowSystemInterface::registerTouchDevice.

Change-Id: Ic1468d3e43933d8b5691d75aa67c43e1bc7ffe3e
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2011-12-09 14:15:37 +01:00
..
atwrapper Doc: Fixing typo 2011-10-26 13:50:12 +02:00
baselineexample Moved autotests in category 'other' into new directory structure 2011-09-09 09:36:41 +02:00
collections Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
compiler Don't depend on moc to disable test functions. 2011-11-18 01:51:57 +01:00
exceptionsafety Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
exceptionsafety_objects Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
gestures Extend touch events. 2011-12-09 14:15:37 +01:00
headersclean all remaining tests: eliminated usage of qttest_p4.prf 2011-10-25 08:42:23 +02:00
lancelot Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
languagechange Tests: Fix the language change test. 2011-12-09 08:24:03 +01:00
macgui Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
macnativeevents Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
macplist Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
modeltest Notify about moves in the source model more efficiently. 2011-12-09 02:39:06 +01:00
networkselftest Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
qaccessibility Create a class to contain accessibilty enums. 2011-12-08 08:51:35 +01:00
qcomplextext Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qdirectpainter Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qfocusevent Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qmultiscreen Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qnetworkaccessmanager_and_qprogressdialog Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
qobjectperformance Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qobjectrace Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
qsharedpointer_and_qwidget Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
qtokenautomaton all remaining tests: eliminated usage of qttest_p4.prf 2011-10-25 08:42:23 +02:00
windowsmobile Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
other.pro Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00