summaryrefslogtreecommitdiff
path: root/tests/auto/qmainwindow/tst_qmainwindow.cpp
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-06 17:00:34 +0200
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-07 09:33:40 +0200
commit592462f4101bb2a9d7be58fb72b8f11714490cd5 (patch)
tree0f21b3319805eea608d345bb993b28c2e4cd6123 /tests/auto/qmainwindow/tst_qmainwindow.cpp
parent478d4dde9f0f6f232136935d93f0b5e3cca9db61 (diff)
downloadqt4-tools-592462f4101bb2a9d7be58fb72b8f11714490cd5.tar.gz
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 6ae7a3e997..f81dd82c8d 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);