diff options
-rw-r--r-- | tests/auto/qspinbox/tst_qspinbox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qspinbox/tst_qspinbox.cpp b/tests/auto/qspinbox/tst_qspinbox.cpp index a3b7979331..d6a208d3ce 100644 --- a/tests/auto/qspinbox/tst_qspinbox.cpp +++ b/tests/auto/qspinbox/tst_qspinbox.cpp @@ -983,20 +983,20 @@ void tst_QSpinBox::sizeHint() // Prefix spinBox->sizeHintRequests = 0; spinBox->setPrefix(QLatin1String("abcdefghij")); - QTest::qWait(100); + qApp->processEvents(); QVERIFY(spinBox->sizeHintRequests > 0); // Suffix spinBox->sizeHintRequests = 0; spinBox->setSuffix(QLatin1String("abcdefghij")); - QTest::qWait(100); + qApp->processEvents(); QVERIFY(spinBox->sizeHintRequests > 0); // Range spinBox->sizeHintRequests = 0; spinBox->setRange(0, 1234567890); spinBox->setValue(spinBox->maximum()); - QTest::qWait(100); + qApp->processEvents(); QVERIFY(spinBox->sizeHintRequests > 0); } |