summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-18 08:32:32 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-18 10:37:02 (GMT)
commit5dc610c1ee0fd6230009d7a4bdcb13ec56873438 (patch)
treee6a01b5bafa23c67831d2a5c3e3bfac9f4bc5542 /tests/auto
parent17d0bca7afab7432194db38609c7397bfd4806ae (diff)
downloadQt-5dc610c1ee0fd6230009d7a4bdcb13ec56873438.zip
Qt-5dc610c1ee0fd6230009d7a4bdcb13ec56873438.tar.gz
Qt-5dc610c1ee0fd6230009d7a4bdcb13ec56873438.tar.bz2
fix tst_QMainWindow::menuBar for Windows mobile
Reviewed-by: thartman
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qmainwindow/tst_qmainwindow.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qmainwindow/tst_qmainwindow.cpp b/tests/auto/qmainwindow/tst_qmainwindow.cpp
index 9a436b5..b5c75cd 100644
--- a/tests/auto/qmainwindow/tst_qmainwindow.cpp
+++ b/tests/auto/qmainwindow/tst_qmainwindow.cpp
@@ -550,7 +550,11 @@ void tst_QMainWindow::menuBar()
mw.setMenuBar(mb1);
QVERIFY(mw.menuBar() != 0);
QCOMPARE(mw.menuBar(), (QMenuBar *)mb1);
+#ifdef Q_OS_WINCE_WM
+ QCOMPARE(mb1->parentWidget(), (QWidget*)0);
+#else
QCOMPARE(mb1->parentWidget(), (QWidget *)&mw);
+#endif
mw.setMenuBar(0);
QVERIFY(mw.menuBar() != 0);
@@ -561,7 +565,11 @@ void tst_QMainWindow::menuBar()
mw.setMenuBar(mb2);
QVERIFY(mw.menuBar() != 0);
QCOMPARE(mw.menuBar(), (QMenuBar *)mb2);
+#ifdef Q_OS_WINCE_WM
+ QCOMPARE(mb2->parentWidget(), (QWidget*)0);
+#else
QCOMPARE(mb2->parentWidget(), (QWidget *)&mw);
+#endif
mw.setMenuBar(0);
QVERIFY(mw.menuBar() != 0);