Changeset 846 for trunk/src/gui/widgets/qtoolbarlayout.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/qtoolbarlayout.cpp
r651 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) … … 58 58 QT_BEGIN_NAMESPACE 59 59 60 // qmainwindow.cpp 61 extern QMainWindowLayout *qt_mainwindow_layout(const QMainWindow *window); 62 60 63 /****************************************************************************** 61 64 ** QToolBarItem … … 405 408 Qt::ToolBarArea area = win->toolBarArea(tb); 406 409 if (win->unifiedTitleAndToolBarOnMac() && area == Qt::TopToolBarArea) { 407 static_cast<QMainWindowLayout *>(win->layout())->fixSizeInUnifiedToolbar(tb);410 qt_mainwindow_layout(win)->fixSizeInUnifiedToolbar(tb); 408 411 } 409 412 } … … 655 658 return; 656 659 if (QMainWindow *win = qobject_cast<QMainWindow*>(tb->parentWidget())) { 660 #ifdef QT_NO_DOCKWIDGET 661 animating = false; 662 #else 657 663 animating = !tb->isWindow() && win->isAnimated(); 658 QMainWindowLayout *layout = qobject_cast<QMainWindowLayout*>(win->layout()); 664 #endif 665 QMainWindowLayout *layout = qt_mainwindow_layout(win); 659 666 if (expanded) { 660 667 tb->raise();
Note:
See TracChangeset
for help on using the changeset viewer.