diff options
author | Harald Fernengel <harald.fernengel@nokia.com> | 2010-09-10 13:13:00 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-09-10 13:13:00 (GMT) |
commit | 0b78630df897864feb3e3ec5f1da0b21dd13f7b0 (patch) | |
tree | 5ef3efdf11b827208f2ccb3f8ff6731d44db647b /tests/auto/qmainwindow/tst_qmainwindow.cpp | |
parent | 7e05bf257d589e97e54b36cb112f96ae17cbd6f2 (diff) | |
download | Qt-0b78630df897864feb3e3ec5f1da0b21dd13f7b0.zip Qt-0b78630df897864feb3e3ec5f1da0b21dd13f7b0.tar.gz Qt-0b78630df897864feb3e3ec5f1da0b21dd13f7b0.tar.bz2 |
Implement a private API for setting title widgets
Meego and Orbit use client side decorations, so implement a top-level
layout in QMainWindow that allows us to set title widgets. To prevent
regressions on other platforms, the API is disabled by default.
Rev-By: Robert Griebl
Rev-By: Thierry Bastian
Diffstat (limited to 'tests/auto/qmainwindow/tst_qmainwindow.cpp')
-rw-r--r-- | tests/auto/qmainwindow/tst_qmainwindow.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/qmainwindow/tst_qmainwindow.cpp b/tests/auto/qmainwindow/tst_qmainwindow.cpp index 1273e85..6f95672 100644 --- a/tests/auto/qmainwindow/tst_qmainwindow.cpp +++ b/tests/auto/qmainwindow/tst_qmainwindow.cpp @@ -1449,8 +1449,7 @@ Q_DECLARE_METATYPE(MoveList) void MoveSeparator::apply(QMainWindow *mw) const { - - QMainWindowLayout *l = qobject_cast<QMainWindowLayout*>(mw->layout()); + QMainWindowLayout *l = qFindChild<QMainWindowLayout *>(mw->layout()); QVERIFY(l); QList<int> path; |