summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp')
-rw-r--r--tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
index ce0049cc2d..96dce56b8b 100644
--- a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
+++ b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
@@ -2095,11 +2095,8 @@ void tst_QComboBox::task190205_setModelAdjustToContents()
correctBox.addItems(finalContent);
correctBox.show();
- QCoreApplication::processEvents();
-#ifdef Q_WS_X11
- qt_x11_wait_for_window_manager(&box);
- qt_x11_wait_for_window_manager(&correctBox);
-#endif
+ QVERIFY(QTest::qWaitForWindowExposed(&box));
+ QVERIFY(QTest::qWaitForWindowExposed(&correctBox));
// box should be resized to the same size as correctBox
QTRY_COMPARE(box.size(), correctBox.size());