From 09800d84d99c51941df8b15c2979af79ac750ee3 Mon Sep 17 00:00:00 2001 From: Dominik Holland Date: Wed, 28 Jul 2010 10:24:18 +0200 Subject: Fixed QMenuBar autotest. Added mainwindow activation --- tests/auto/qmenubar/tst_qmenubar.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 ); -- cgit v0.12