Changeset 561 for trunk/src/gui/widgets/qmainwindowlayout_p.h
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/gui/widgets/qmainwindowlayout_p.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the QtGui module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you have questions regarding the use of this file, please contact 37 ** Nokia at qt-info@nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 62 62 #include "QtCore/qvector.h" 63 63 #include "QtCore/qset.h" 64 #include "QtCore/qbasictimer.h" 64 65 #include "private/qlayoutengine_p.h" 66 #include "private/qwidgetanimator_p.h" 65 67 66 68 #include "qdockarealayout_p.h" … … 89 91 90 92 class QToolBar; 91 class QWidgetAnimator;92 93 class QRubberBand; 93 94 … … 128 129 QLayoutItem *takeAt(int index, int *x); 129 130 QList<int> indexOf(QWidget *widget) const; 130 QLayoutItem *item( QList<int>path);131 QRect itemRect( QList<int>path) const;132 QRect gapRect( QList<int>path) const; // ### get rid of this, use itemRect() instead131 QLayoutItem *item(const QList<int> &path); 132 QRect itemRect(const QList<int> &path) const; 133 QRect gapRect(const QList<int> &path) const; // ### get rid of this, use itemRect() instead 133 134 134 135 bool contains(QWidget *widget) const; … … 138 139 139 140 QList<int> gapIndex(QWidget *widget, const QPoint &pos) const; 140 bool insertGap( QList<int>path, QLayoutItem *item);141 void remove( QList<int>path);141 bool insertGap(const QList<int> &path, QLayoutItem *item); 142 void remove(const QList<int> &path); 142 143 void remove(QLayoutItem *item); 143 144 void clear(); 144 145 bool isValid() const; 145 146 146 QLayoutItem *plug( QList<int>path);147 QLayoutItem *unplug( QList<int>path, QMainWindowLayoutState *savedState = 0);147 QLayoutItem *plug(const QList<int> &path); 148 QLayoutItem *unplug(const QList<int> &path, QMainWindowLayoutState *savedState = 0); 148 149 149 150 void saveState(QDataStream &stream) const; … … 165 166 void setDockOptions(QMainWindow::DockOptions opts); 166 167 bool usesHIToolBar(QToolBar *toolbar) const; 168 169 void timerEvent(QTimerEvent *e); 167 170 168 171 // status bar … … 244 247 QList<int> movingSeparator; 245 248 QPoint movingSeparatorOrigin, movingSeparatorPos; 246 QTimer *separatorMoveTimer; 247 QVector<QLayoutStruct> separatorMoveCache; 249 QBasicTimer separatorMoveTimer; 248 250 249 251 bool startSeparatorMove(const QPoint &pos); … … 277 279 // animations 278 280 279 QWidgetAnimator *widgetAnimator;281 QWidgetAnimator widgetAnimator; 280 282 QList<int> currentGapPos; 281 283 QRect currentGapRect; … … 294 296 void restore(bool keepSavedState = false); 295 297 void updateHIToolBarStatus(); 296 297 private slots:298 298 void animationFinished(QWidget *widget); 299 void allAnimationsFinished(); 299 300 private Q_SLOTS: 300 301 #ifndef QT_NO_DOCKWIDGET 301 void doSeparatorMove();302 302 #ifndef QT_NO_TABBAR 303 303 void tabChanged(); … … 336 336 void fixSizeInUnifiedToolbar(QToolBar *tb) const; 337 337 bool useHIToolBar; 338 void syncUnifiedToolbarVisibility(); 339 bool blockVisiblityCheck; 338 340 #endif 339 341 }; … … 342 344 #endif // QT_NO_MAINWINDOW 343 345 344 QT_BEGIN_NAMESPACE345 static inline int pick(Qt::Orientation o, const QPoint &pos)346 { return o == Qt::Horizontal ? pos.x() : pos.y(); }347 348 static inline int pick(Qt::Orientation o, const QSize &size)349 { return o == Qt::Horizontal ? size.width() : size.height(); }350 351 static inline int &rpick(Qt::Orientation o, QPoint &pos)352 { return o == Qt::Horizontal ? pos.rx() : pos.ry(); }353 354 static inline int &rpick(Qt::Orientation o, QSize &size)355 { return o == Qt::Horizontal ? size.rwidth() : size.rheight(); }356 357 static inline QSizePolicy::Policy pick(Qt::Orientation o, const QSizePolicy &policy)358 { return o == Qt::Horizontal ? policy.horizontalPolicy() : policy.verticalPolicy(); }359 360 static inline int perp(Qt::Orientation o, const QPoint &pos)361 { return o == Qt::Vertical ? pos.x() : pos.y(); }362 363 static inline int perp(Qt::Orientation o, const QSize &size)364 { return o == Qt::Vertical ? size.width() : size.height(); }365 366 static inline int &rperp(Qt::Orientation o, QPoint &pos)367 { return o == Qt::Vertical ? pos.rx() : pos.ry(); }368 369 static inline int &rperp(Qt::Orientation o, QSize &size)370 { return o == Qt::Vertical ? size.rwidth() : size.rheight(); }371 372 QT_END_NAMESPACE373 374 346 #endif // QDYNAMICMAINWINDOWLAYOUT_P_H
Note:
See TracChangeset
for help on using the changeset viewer.