qt5base-lts/tests/auto/widgets/graphicsview/qgraphicsscene
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
..
testData/render Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
Ash_European.jpg Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
BLACKLIST macOS: Remove blacklist entries for no longer supported OS versions 2018-11-12 07:16:30 +00:00
graphicsScene_selection.data Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
images.qrc Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
qgraphicsscene.pro QtWidgets: Remove Windows CE. 2016-04-07 10:24:45 +00:00
testdata.qrc Android: Fix some QGraphicsScene tests 2016-01-20 07:48:34 +00:00
tst_qgraphicsscene.cpp qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00