diff -r 5dc02b23752f -r 3e2da88830cd tests/auto/qwidgetaction/tst_qwidgetaction.cpp --- a/tests/auto/qwidgetaction/tst_qwidgetaction.cpp Tue Jul 06 15:10:48 2010 +0300 +++ b/tests/auto/qwidgetaction/tst_qwidgetaction.cpp Wed Aug 18 10:37:55 2010 +0300 @@ -187,12 +187,12 @@ action->setDefaultWidget(combo); tb.addAction(action); - qApp->processEvents(); //the call to show is delayed by the toolbar layout - QVERIFY(combo->isVisible()); + //the call to show is delayed by the toolbar layout + QTRY_VERIFY(combo->isVisible()); QVERIFY(action->isVisible()); action->setVisible(false); - qApp->processEvents(); //the call to hide is delayed by the toolbar layout + //the call to hide is delayed by the toolbar layout QTRY_VERIFY(!combo->isVisible()); delete action;