aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickapplication
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@qt.io>2017-11-22 13:02:32 +0100
committerGatis Paeglis <gatis.paeglis@qt.io>2017-11-22 22:07:53 +0000
commitd6fed261bed0b9b38e44bfa6e00ebc0789059b16 (patch)
tree72198976ccdb1c0e95d82b6e0f577e5717a9efc0 /tests/auto/quick/qquickapplication
parentcca2e1943106fe78dc80882a053d7559e763a356 (diff)
tst_qquickapplication: don't use QTest::waitForEvents()
This is an internal, non-documented qtestlib function. After usage of QWindowSystemInterface::handle* API, it is sufficient to call QCoreApplication::processEvents() to flush the event queue. Change-Id: I507c8c41f8021c96faa4c6434d0f228b15447d9d Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickapplication')
-rw-r--r--tests/auto/quick/qquickapplication/tst_qquickapplication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickapplication/tst_qquickapplication.cpp b/tests/auto/quick/qquickapplication/tst_qquickapplication.cpp
index e428a1fc6e..89b7924618 100644
--- a/tests/auto/quick/qquickapplication/tst_qquickapplication.cpp
+++ b/tests/auto/quick/qquickapplication/tst_qquickapplication.cpp
@@ -67,7 +67,7 @@ void tst_qquickapplication::cleanup()
{
if (QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::ApplicationState)) {
QWindowSystemInterface::handleApplicationStateChanged(Qt::ApplicationInactive);
- QTest::waitForEvents();
+ QCoreApplication::processEvents();
}
}