qt5base-lts/tests/auto/widgets/graphicsview/qgraphicsview
Volker Hilsheimer 1ecf2212fa Forward touchEvents to children inside QGraphicsProxyWidget
Just sending the event to the embedded widget is not enough, we
have to perform hit-testing for the different touch points, and
send the event to the child widget under the point. Fortunately,
QApplicationPrivate::translateRawTouchEvent provides the logic
that generates multiple events for groups of touch points.

Since that helper always sent events spontaneously, add an
optional parameter to allow sending of non-spontaneous events.

Add a test case that simulates touch events to different widget
configurations inside a QGraphicsProxyWidget.

Fixes: QTBUG-67819
Task-number: QTBUG-45737
Pick-to: 6.2 6.1 5.15
Change-Id: Iffd5c84c64ee2ceadc7e31863675fdf227582c81
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2021-08-26 09:36:20 +02:00
..
.gitignore
BLACKLIST Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
CMakeLists.txt CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
tst_qgraphicsview_2.cpp Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
tst_qgraphicsview.cpp Forward touchEvents to children inside QGraphicsProxyWidget 2021-08-26 09:36:20 +02:00
tst_qgraphicsview.h Replace Qt CONSTEXPR defines with constexpr 2020-08-14 15:52:58 +02:00