qt6-bb10/tests/auto
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
..
cmake Remove the qmake project files 2021-01-07 15:32:28 +01:00
concurrent Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
corelib QCache: when overwriting, store the new cost instead of the delta 2021-01-14 10:00:01 +00:00
dbus Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
gui AA_SynthesizeTouchForUnhandledMouseEvents: keep correct coordinates 2021-01-14 19:09:28 +00:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
printsupport Remove the qmake project files 2021-01-07 15:32:28 +01:00
shared Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
sql QODBC: Preserve the whole value when using HighPrecision 2021-01-14 07:02:43 +00:00
testlib QTestLib: Show the values of unregistered enums 2021-01-13 16:15:06 +01:00
tools Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
widgets Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
xml Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
CMakeLists.txt CMake: Fix building with -DQT_FEATURE_gui=OFF 2020-09-15 20:05:32 +02:00
network-settings.h Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00