From 2d0bcd161299db2b01fd9a6427058af1c0d3b407 Mon Sep 17 00:00:00 2001 From: jasplin Date: Wed, 24 Jun 2009 12:20:36 +0200 Subject: Save some time. Reviewed-by: TrustMe --- tests/auto/qspinbox/tst_qspinbox.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/auto/qspinbox/tst_qspinbox.cpp b/tests/auto/qspinbox/tst_qspinbox.cpp index a3b7979..d6a208d 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); } -- cgit v0.12