Changeset 846 for trunk/src/gui/widgets/qmainwindowlayout.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/widgets/qmainwindowlayout.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 161 161 void qt_dumpLayout(QTextStream &qout, QMainWindow *window) 162 162 { 163 QMainWindowLayout *layout = q object_cast<QMainWindowLayout*>(window->layout());163 QMainWindowLayout *layout = qt_mainwindow_layout(window); 164 164 dumpLayout(qout, layout->layoutState.dockAreaLayout, QString()); 165 165 } … … 236 236 #else 237 237 if (centralWidgetItem != 0) { 238 QMainWindowLayout *layout = q object_cast<QMainWindowLayout*>(mainWindow->layout());238 QMainWindowLayout *layout = qt_mainwindow_layout(mainWindow); 239 239 Q_ASSERT(layout != 0); 240 240 layout->widgetAnimator.animate(centralWidgetItem->widget(), centralWidgetRect, animated); … … 944 944 if (layoutState.mainWindow->unifiedTitleAndToolBarOnMac()) { 945 945 // If we hit this case, someone has pressed the "toolbar button" which will 946 // toggle the unified toolbar visib lity, because that's what the user wants.946 // toggle the unified toolbar visibility, because that's what the user wants. 947 947 // We might be in a situation where someone has hidden all the toolbars 948 948 // beforehand (maybe in construction), but now they've hit this button and … … 1675 1675 } 1676 1676 1677 QMainWindowLayout::QMainWindowLayout(QMainWindow *mainwindow )1678 : QLayout( mainwindow)1677 QMainWindowLayout::QMainWindowLayout(QMainWindow *mainwindow, QLayout *parentLayout) 1678 : QLayout(parentLayout ? static_cast<QWidget *>(0) : mainwindow) 1679 1679 , layoutState(mainwindow) 1680 1680 , savedState(mainwindow) … … 1699 1699 #endif 1700 1700 { 1701 if (parentLayout) 1702 setParent(parentLayout); 1703 1701 1704 #ifndef QT_NO_DOCKWIDGET 1702 1705 #ifndef QT_NO_TABBAR
Note:
See TracChangeset
for help on using the changeset viewer.