qt5base-lts/tests/auto/widgets/itemviews
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
..
qabstractitemview winrt: Implement QPlatformCursor::setPos 2018-08-06 05:24:35 +00:00
qcolumnview winrt: Make itemview auto tests pass 2018-06-22 05:02:44 +00:00
qdatawidgetmapper tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qdirmodel winrt: Make itemview auto tests pass 2018-06-22 05:02:44 +00:00
qfileiconprovider Updated license headers 2016-01-21 18:55:18 +00:00
qheaderview Blacklist flaky tst_qheaderview test 2018-09-24 21:12:52 +00:00
qitemdelegate Extend opensuse blacklistings to opensuse-leap 2018-09-11 12:11:45 +00:00
qitemeditorfactory Updated license headers 2016-01-21 18:55:18 +00:00
qitemview Autotests/QItemView: re-enable tst_QItemView::indexAt() 2018-09-09 12:04:15 +00:00
qlistview Restore qlistview testing on Linux 2018-07-18 09:25:30 +00:00
qlistwidget tests/auto/widgets/itemviews: Avoid unconditional qWait()s 2018-05-09 05:52:22 +00:00
qtableview Blacklist a flaky qtableview function in WinRT 2019-01-08 11:58:41 +00:00
qtablewidget QTableWidget: fix cellChanged signal emitted by takeItem() 2018-10-19 12:19:20 +00:00
qtreeview Merge remote-tracking branch 'origin/5.11' into 5.12 2018-10-17 10:35:28 +02:00
qtreewidget qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
qtreewidgetitemiterator tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
itemviews.pro Remove references to obsolete platforms 2017-11-05 06:33:53 +00:00