qt5base-lts/tests/auto/widgets/graphicsview/qgraphicsview
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
..
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
BLACKLIST Blacklist tst_QGraphicsView::itemsInRect_cosmeticAdjust on Ubuntu 2018-03-05 07:27:17 +00:00
qgraphicsview.pro testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
tst_qgraphicsview_2.cpp tst_qgraphicsview: use new QTest::addRow() more 2017-01-26 10:31:36 +00:00
tst_qgraphicsview.cpp Make test less dependent on moving the cursor 2019-08-11 12:01:54 +02:00
tst_qgraphicsview.h Speed up compilation of tst_qgraphicsview_2.cpp 2016-10-03 14:59:56 +00:00