summaryrefslogtreecommitdiffstats
path: root/tests/auto/qwidgetaction/tst_qwidgetaction.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-10-08 15:49:50 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-10-12 11:00:41 (GMT)
commit106678fe1f27e1df161b2e55ccc88b244fa6d478 (patch)
tree5044e988ce52e7a976d852aea8b8fae63bab7bc4 /tests/auto/qwidgetaction/tst_qwidgetaction.cpp
parent92dab5ea276732944915a9423fc174db6d84e572 (diff)
downloadQt-106678fe1f27e1df161b2e55ccc88b244fa6d478.zip
Qt-106678fe1f27e1df161b2e55ccc88b244fa6d478.tar.gz
Qt-106678fe1f27e1df161b2e55ccc88b244fa6d478.tar.bz2
Fix the QWidgetAction test on Carbon
Diffstat (limited to 'tests/auto/qwidgetaction/tst_qwidgetaction.cpp')
-rw-r--r--tests/auto/qwidgetaction/tst_qwidgetaction.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qwidgetaction/tst_qwidgetaction.cpp b/tests/auto/qwidgetaction/tst_qwidgetaction.cpp
index 586a707..50b3337 100644
--- a/tests/auto/qwidgetaction/tst_qwidgetaction.cpp
+++ b/tests/auto/qwidgetaction/tst_qwidgetaction.cpp
@@ -125,6 +125,7 @@ void tst_QWidgetAction::defaultWidget()
tb1.addAction(action);
QVERIFY(combo->parent() == &tb1);
qApp->processEvents();
+ qApp->processEvents();
QVERIFY(combo->isVisible());
// not supported, not supposed to work, hence the parent() check
@@ -139,6 +140,7 @@ void tst_QWidgetAction::defaultWidget()
tb2.addAction(action);
qApp->processEvents(); //the call to hide is delayd by the toolbar layout
+ qApp->processEvents();
QVERIFY(combo->parent() == &tb2);
QVERIFY(combo->isVisible());