qt6-bb10/tests/auto/widgets/graphicsview
Kari Oikarinen 141582505f Stabilize tst_QGraphicsView::acceptMouseDoubleClickEvent
This test has been flaky on openSUSE in CI. The problem was that the window is
sometimes resized or removed while processing events after adding the rectangle
item to the QGraphicsScene. When the same mouse event is reused again, it uses
wrong screen coordinates. QGraphicsScene handling of mouse events then looks for
items under cursor at the wrong coordinates, does not find any items and thus
doesn't accept the mouse event.

Fix by using QTest API for simulating mouse events. Also wait for changed signal
rather than blindly running one iteration of event loop.

Task-number: QTBUG-67212
Task-number: QTBUG-66216
Change-Id: I968f9470c6f8803d01cebeda6f12ad76b4fd5293
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
2018-03-22 13:35:51 +00:00
..
qgraphicsanchorlayout
qgraphicsanchorlayout1
qgraphicseffectsource
qgraphicsgridlayout Fix layout tests for GCC 5.2.x/5.3.x 2017-03-30 06:58:07 +00:00
qgraphicsitem Fix touch point positions of non-transformable QGraphicsItems 2018-02-20 13:54:34 +00:00
qgraphicsitemanimation tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qgraphicslayout tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qgraphicslayoutitem tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qgraphicslinearlayout Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qgraphicsobject
qgraphicspixmapitem
qgraphicspolygonitem
qgraphicsproxywidget qtbase: Remove BLACKLIST files which are no longer active 2018-02-12 17:40:12 +00:00
qgraphicsscene Fix touch point positions of non-transformable QGraphicsItems 2018-02-20 13:54:34 +00:00
qgraphicssceneindex Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
qgraphicstransform
qgraphicsview Stabilize tst_QGraphicsView::acceptMouseDoubleClickEvent 2018-03-22 13:35:51 +00:00
qgraphicswidget qtbase: Remove BLACKLIST files which are no longer active 2018-02-12 17:40:12 +00:00
graphicsview.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00