qt5base-lts/tests/auto/widgets/graphicsview
Tor Arne Vestbø 68511d41d5 qWaitFor: Prevent being stuck in QCoreApplication::processEvents
When using the overload of QCoreApplication::processEvents that takes a
maxtime argument, the function will keep processing events until there
are no more events, or until it times out.

The problem is that the function doesn't distinguish between events that
were on the event queue when the function was called, and events generated
by processing events as part of its own execution. If for example a widget
calls update() in its paintEvent, the function will spin for the entire
duration of maxtime.

That doesn't work for qWaitFor, where we need to check the predicate
between each pass, so we use the overload of processEvents that doesn't
take a maxtime. That's fine, as we have our own timeout logic.

Change-Id: I9738d7d0187c36d4a5ddfcd3fd075b0bd84583c4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2019-01-09 18:10:54 +00:00
..
qgraphicsanchorlayout Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsanchorlayout1 tests/auto/widgets/graphicsview: Avoid unconditional qWait()s 2018-05-14 06:05:19 +00:00
qgraphicseffectsource qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
qgraphicsgridlayout tests/auto/widgets/graphicsview: Avoid unconditional qWait()s 2018-05-14 06:05:19 +00:00
qgraphicsitem qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +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 tests/auto/widgets/graphicsview: Avoid unconditional qWait()s 2018-05-14 06:05:19 +00:00
qgraphicsobject Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicspixmapitem Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicspolygonitem Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsproxywidget QGraphicsProxyWidget: Don't crash within setWidget() when a child proxy has no assigned widget 2018-11-22 16:43:38 +00:00
qgraphicsscene qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
qgraphicssceneindex winrt: make graphicsview auto tests pass 2018-05-28 06:50:46 +00:00
qgraphicstransform Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsview qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
qgraphicswidget qtbase: Remove BLACKLIST files which are no longer active 2018-02-12 17:40:12 +00:00
graphicsview.pro winrt: make graphicsview auto tests pass 2018-05-28 06:50:46 +00:00