summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmainwindow/tst_qmainwindow.cpp
diff options
context:
space:
mode:
authorHarald Fernengel <harald.fernengel@nokia.com>2010-09-10 13:13:00 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2010-09-10 13:13:00 (GMT)
commit0b78630df897864feb3e3ec5f1da0b21dd13f7b0 (patch)
tree5ef3efdf11b827208f2ccb3f8ff6731d44db647b /tests/auto/qmainwindow/tst_qmainwindow.cpp
parent7e05bf257d589e97e54b36cb112f96ae17cbd6f2 (diff)
downloadQt-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.cpp3
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;