summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2019-07-05 17:20:14 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2019-07-08 20:51:19 +0200
commit307403f8b4f25f3fa711fb64102c755d50283c2b (patch)
tree0a135a6acd59f152e3f1d3c32eecd5201d9f4477 /src
parenta41701904e880f58e19b352ade1931d6cd1a7112 (diff)
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>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions