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/qtoolbarlayout.cpp

    r651 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)
     
    5858QT_BEGIN_NAMESPACE
    5959
     60// qmainwindow.cpp
     61extern QMainWindowLayout *qt_mainwindow_layout(const QMainWindow *window);
     62
    6063/******************************************************************************
    6164** QToolBarItem
     
    405408        Qt::ToolBarArea area = win->toolBarArea(tb);
    406409        if (win->unifiedTitleAndToolBarOnMac() && area == Qt::TopToolBarArea) {
    407             static_cast<QMainWindowLayout *>(win->layout())->fixSizeInUnifiedToolbar(tb);
     410            qt_mainwindow_layout(win)->fixSizeInUnifiedToolbar(tb);
    408411        }
    409412    }
     
    655658        return;
    656659    if (QMainWindow *win = qobject_cast<QMainWindow*>(tb->parentWidget())) {
     660#ifdef QT_NO_DOCKWIDGET
     661        animating = false;
     662#else
    657663        animating = !tb->isWindow() && win->isAnimated();
    658         QMainWindowLayout *layout = qobject_cast<QMainWindowLayout*>(win->layout());
     664#endif
     665        QMainWindowLayout *layout = qt_mainwindow_layout(win);
    659666        if (expanded) {
    660667            tb->raise();
Note: See TracChangeset for help on using the changeset viewer.