Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/widgets/qmainwindowlayout.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    161161void qt_dumpLayout(QTextStream &qout, QMainWindow *window)
    162162{
    163     QMainWindowLayout *layout = qobject_cast<QMainWindowLayout*>(window->layout());
     163    QMainWindowLayout *layout = qt_mainwindow_layout(window);
    164164    dumpLayout(qout, layout->layoutState.dockAreaLayout, QString());
    165165}
     
    236236#else
    237237    if (centralWidgetItem != 0) {
    238         QMainWindowLayout *layout = qobject_cast<QMainWindowLayout*>(mainWindow->layout());
     238        QMainWindowLayout *layout = qt_mainwindow_layout(mainWindow);
    239239        Q_ASSERT(layout != 0);
    240240        layout->widgetAnimator.animate(centralWidgetItem->widget(), centralWidgetRect, animated);
     
    944944    if (layoutState.mainWindow->unifiedTitleAndToolBarOnMac()) {
    945945        // If we hit this case, someone has pressed the "toolbar button" which will
    946         // toggle the unified toolbar visiblity, because that's what the user wants.
     946        // toggle the unified toolbar visibility, because that's what the user wants.
    947947        // We might be in a situation where someone has hidden all the toolbars
    948948        // beforehand (maybe in construction), but now they've hit this button and
     
    16751675}
    16761676
    1677 QMainWindowLayout::QMainWindowLayout(QMainWindow *mainwindow)
    1678     : QLayout(mainwindow)
     1677QMainWindowLayout::QMainWindowLayout(QMainWindow *mainwindow, QLayout *parentLayout)
     1678    : QLayout(parentLayout ? static_cast<QWidget *>(0) : mainwindow)
    16791679    , layoutState(mainwindow)
    16801680    , savedState(mainwindow)
     
    16991699#endif
    17001700{
     1701    if (parentLayout)
     1702        setParent(parentLayout);
     1703
    17011704#ifndef QT_NO_DOCKWIDGET
    17021705#ifndef QT_NO_TABBAR
Note: See TracChangeset for help on using the changeset viewer.