--- 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;