From 592462f4101bb2a9d7be58fb72b8f11714490cd5 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 6 Aug 2009 17:00:34 +0200 Subject: fixing qmainwindow autotest On windows mobile with native menubar integration the menubar is not a child of the mainwindow Reviewed-by: Joerg --- tests/auto/qmainwindow/tst_qmainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v0.12