summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmenubar/tst_qmenubar.cpp
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@nokia.com>2010-07-28 08:24:18 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2010-11-02 14:29:41 (GMT)
commit09800d84d99c51941df8b15c2979af79ac750ee3 (patch)
treec65e9e43b148b010c4ead00a4603278030db9fe0 /tests/auto/qmenubar/tst_qmenubar.cpp
parent4dabd36fe0cd52dc297d2fa56c50917314c385a2 (diff)
downloadQt-09800d84d99c51941df8b15c2979af79ac750ee3.zip
Qt-09800d84d99c51941df8b15c2979af79ac750ee3.tar.gz
Qt-09800d84d99c51941df8b15c2979af79ac750ee3.tar.bz2
Fixed QMenuBar autotest. Added mainwindow activation
Diffstat (limited to 'tests/auto/qmenubar/tst_qmenubar.cpp')
-rw-r--r--tests/auto/qmenubar/tst_qmenubar.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qmenubar/tst_qmenubar.cpp b/tests/auto/qmenubar/tst_qmenubar.cpp
index cc9fb0c..392a4a0 100644
--- a/tests/auto/qmenubar/tst_qmenubar.cpp
+++ b/tests/auto/qmenubar/tst_qmenubar.cpp
@@ -338,6 +338,8 @@ void tst_QMenuBar::initTestCase_noQt3()
initSimpleMenubar_noQt3();
mw->show();
+ QTest::qWaitForWindowShown(mw);
+ mw->activateWindow();
menu1 = new QtTestSlot( mw );
menu2 = new QtTestSlot( mw );