summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmainwindow/tst_qmainwindow.cpp
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-06 15:00:34 (GMT)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-07 07:33:40 (GMT)
commit592462f4101bb2a9d7be58fb72b8f11714490cd5 (patch)
tree0f21b3319805eea608d345bb993b28c2e4cd6123 /tests/auto/qmainwindow/tst_qmainwindow.cpp
parent478d4dde9f0f6f232136935d93f0b5e3cca9db61 (diff)
downloadQt-592462f4101bb2a9d7be58fb72b8f11714490cd5.zip
Qt-592462f4101bb2a9d7be58fb72b8f11714490cd5.tar.gz
Qt-592462f4101bb2a9d7be58fb72b8f11714490cd5.tar.bz2
fixing qmainwindow autotest
On windows mobile with native menubar integration the menubar is not a child of the mainwindow Reviewed-by: Joerg
Diffstat (limited to 'tests/auto/qmainwindow/tst_qmainwindow.cpp')
-rw-r--r--tests/auto/qmainwindow/tst_qmainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qmainwindow/tst_qmainwindow.cpp b/tests/auto/qmainwindow/tst_qmainwindow.cpp
index 6ae7a3e..f81dd82 100644
--- a/tests/auto/qmainwindow/tst_qmainwindow.cpp
+++ b/tests/auto/qmainwindow/tst_qmainwindow.cpp
@@ -550,6 +550,9 @@ void tst_QMainWindow::menuBar()
mw.setMenuBar(mb1);
QVERIFY(mw.menuBar() != 0);
QCOMPARE(mw.menuBar(), (QMenuBar *)mb1);
+#ifdef Q_WS_WINCE_WM
+ QSKIP("With native menubar integration the menubar is not a child", SkipSingle);
+#endif
QCOMPARE(mb1->parentWidget(), (QWidget *)&mw);
mw.setMenuBar(0);