summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets/qmainwindow
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2014-11-19 10:24:58 +0100
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2014-12-02 08:36:59 +0100
commit03c4b52e1314f0f54d65e163b5f85dce212c6cf6 (patch)
tree40d0ff21ccf1b4027291fd186f76aa608cfbad4b /tests/auto/widgets/widgets/qmainwindow
parent4958cadeda4baf20f74f6b46689ca05d3f2b7875 (diff)
QLayout: Observe contents margin when positioning the menu bar.
Task-number: QTBUG-38152 Change-Id: I53ea6bce33057251265a7eca1651aeabca314ba9 Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Diffstat (limited to 'tests/auto/widgets/widgets/qmainwindow')
-rw-r--r--tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp b/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp
index f2ce2d1d96..15f2f88a8d 100644
--- a/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp
+++ b/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp
@@ -780,6 +780,9 @@ void tst_QMainWindow::contentsMargins()
mw.show();
QVERIFY(QTest::qWaitForWindowExposed(&mw));
+ QCOMPARE(mw.menuBar()->geometry().left(), contentsMargin);
+ QCOMPARE(mw.menuBar()->geometry().top(), contentsMargin);
+
QCOMPARE(mw.statusBar()->geometry().left(), contentsMargin);
QCOMPARE(mw.statusBar()->geometry().bottom() + 1, mw.height() - contentsMargin);
}