summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/android
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2019-06-07 16:04:23 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2019-08-11 12:01:54 +0200
commitfcc5323a08f955bcedd8a8a9750173384fa7d71f (patch)
treed096077b3dcceae050f98cad3dd1e117b0ae4728 /src/plugins/platforms/android
parent9bcbba36c73b8d03e8e58898629259489a24e040 (diff)
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>
Diffstat (limited to 'src/plugins/platforms/android')
0 files changed, 0 insertions, 0 deletions