qt5base-lts/tests/auto/widgets/graphicsview/qgraphicsitem
Volker Hilsheimer 307403f8b4 Stabilize QGraphicsItem::cursor and select_multi tests
The tests send QEvent::MouseMove events to the view, but don't fully
construct the event with both local and global position. Consequently,
QMouseEvent will use QCursor::pos as the global position, which is
unreliable, as QTest::mouseMove can not guarantee that the mouse really
moves - when running the tests locally on e.g macOS, it never does.

So instead construct the QMouseEvent with the trivially calculated
global position.

Change-Id: Ic4c914e3af7f15751545080d4743b06d3887cce8
Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
2019-07-08 20:51:19 +02:00
..
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
BLACKLIST Blacklist qgraphicsitem::sorting test on opensuse-42.3 2019-03-29 07:36:48 +00:00
qgraphicsitem.pro testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
tst_qgraphicsitem.cpp Stabilize QGraphicsItem::cursor and select_multi tests 2019-07-08 20:51:19 +02:00