qt5base-lts/tests/auto/widgets
Morten Johan Sørvig fcc5323a08 Make test less dependent on moving the cursor
The sendMouseMove() function calls QTest::mouseMove(),
which again calls QCursor::setPos() to move the cursor.
It then creates and sends a MouseMove event, using
the constructor which picks up the global position
by calling QCursor::pos().

On macOS 10.14, QCursor::setPos() may silently fail
if the user does not grant the application permission
to move the cursor (via a dialog). As result of this
the mouse move event gets an incorrect global position.

Provide the global position directly when creating
the event to make sure it gets the correct value.

Task-number: QTBUG-75786
Change-Id: I3e8df450fea802783a3d1dbe471753f502b42de3
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2019-08-11 12:01:54 +02:00
..
dialogs QWizard: Account for missing background image on macOS 10.14+ 2019-08-11 10:01:46 +00:00
effects qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
graphicsview Make test less dependent on moving the cursor 2019-08-11 12:01:54 +02:00
itemviews Qt Widgets: Make tests pass on High DPI screens and scaling 2019-05-29 12:52:51 +02:00
kernel A GCC 4.8 build fix 2019-08-08 10:53:53 +03:00
styles QStyleSheetStyle::repolish: only run on direct children 2019-04-12 14:33:32 +00:00
util Brush up tst_QCompleter 2019-06-07 12:34:47 +02:00
widgets Stabilize tst_qsplitter 2019-06-19 18:32:19 +02:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00