summaryrefslogtreecommitdiff
path: root/tests/auto/qspinbox
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2009-06-24 12:20:36 +0200
committerjasplin <qt-info@nokia.com>2009-06-24 12:21:30 +0200
commit2d0bcd161299db2b01fd9a6427058af1c0d3b407 (patch)
tree148f45069e118a5bd2639c59c949b32c1801c9c7 /tests/auto/qspinbox
parent395895085bb78e57aad1acf50b4938e1c872bca7 (diff)
downloadqt4-tools-2d0bcd161299db2b01fd9a6427058af1c0d3b407.tar.gz
Save some time.
Reviewed-by: TrustMe
Diffstat (limited to 'tests/auto/qspinbox')
-rw-r--r--tests/auto/qspinbox/tst_qspinbox.cpp6
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);
}