From c10c20c5fc69ac5f0e406ecdc58d072a846e6743 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 6 Aug 2009 16:57:46 +0200 Subject: Adding QApplication::processEvents to autotest Windows CE is sometimes a little bit slow Reviewed-by: Joerg --- tests/auto/qpushbutton/tst_qpushbutton.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/qpushbutton/tst_qpushbutton.cpp b/tests/auto/qpushbutton/tst_qpushbutton.cpp index 7a81dbf..528f3bb 100644 --- a/tests/auto/qpushbutton/tst_qpushbutton.cpp +++ b/tests/auto/qpushbutton/tst_qpushbutton.cpp @@ -661,6 +661,7 @@ void tst_QPushButton::sizeHint() tabWidget->setCurrentWidget(tab2); tabWidget->setCurrentWidget(tab1); QTest::qWait(100); + QApplication::processEvents(); QCOMPARE(button1_2->size(), button2_2->size()); } -- cgit v0.12