qt5base-lts/tests/auto/gui
Shawn Rutledge aeeac48cbd AA_SynthesizeTouchForUnhandledMouseEvents: keep correct coordinates
QGuiApplicationPrivate::processMouseEvent() sends a
QWindowSystemInterfacePrivate::TouchEvent if the mouse event is not
accepted and AA_SynthesizeTouchForUnhandledMouseEvents is enabled.
A QPA TouchEvent always contains native touch points, which is why
it calls QWindowSystemInterfacePrivate::fromNativeTouchPoints to
translate the QMouseEvent's device-independent position back to the
raw position that it would have had if it came from a real touchscreen.
Therefore we must give that function touchpoints that are actually in
native coordinates.

It may be that some of this transformation could be avoided entirely,
but here we prove that the existing way works correctly, by adding
coordinate checking to the tst_QWindow::mouseToTouchTranslation() test.

Pick-to: 6.0
Task-number: QTBUG-86165
Change-Id: I4c9ca2b11e9eb76d79712c187db3eb9865da581a
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2021-01-14 19:09:28 +00:00
..
image Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
itemmodels Remove the qmake project files 2021-01-07 15:32:28 +01:00
kernel AA_SynthesizeTouchForUnhandledMouseEvents: keep correct coordinates 2021-01-14 19:09:28 +00:00
math3d Remove the qmake project files 2021-01-07 15:32:28 +01:00
painting Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qopengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
qopenglconfig Remove the qmake project files 2021-01-07 15:32:28 +01:00
qvulkan Remove the qmake project files 2021-01-07 15:32:28 +01:00
rhi rhi: gl: Add some enablers for supporting GL_TEXTURE_EXTERNAL_OES 2021-01-13 10:08:23 +01:00
text Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
util Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00