summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qmainwindowlayout_p.h
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-07-01 10:14:29 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-07-01 15:16:10 (GMT)
commitd0299745e511640df3e0a26e8c447d0960ac4546 (patch)
tree860cd92c3dcfbc0fa91337a1e1410c8c35312953 /src/gui/widgets/qmainwindowlayout_p.h
parentfef6f4469d4c856abdaaefe1d914c120396ff365 (diff)
downloadQt-d0299745e511640df3e0a26e8c447d0960ac4546.zip
Qt-d0299745e511640df3e0a26e8c447d0960ac4546.tar.gz
Qt-d0299745e511640df3e0a26e8c447d0960ac4546.tar.bz2
QMainWindow: cleanup of code in QWidgetAnimator
Diffstat (limited to 'src/gui/widgets/qmainwindowlayout_p.h')
-rw-r--r--src/gui/widgets/qmainwindowlayout_p.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/widgets/qmainwindowlayout_p.h b/src/gui/widgets/qmainwindowlayout_p.h
index 26f8633..5c5965a 100644
--- a/src/gui/widgets/qmainwindowlayout_p.h
+++ b/src/gui/widgets/qmainwindowlayout_p.h
@@ -59,10 +59,12 @@
#include "QtGui/qlayout.h"
#include "QtGui/qtabbar.h"
+#include "QtGui/qrubberband.h"
#include "QtCore/qvector.h"
#include "QtCore/qset.h"
#include "QtCore/qbasictimer.h"
#include "private/qlayoutengine_p.h"
+#include "private/qwidgetanimator_p.h"
#include "qdockarealayout_p.h"
#include "qtoolbararealayout_p.h"
@@ -89,7 +91,6 @@ typedef const struct __CFString * CFStringRef;
QT_BEGIN_NAMESPACE
class QToolBar;
-class QWidgetAnimator;
class QRubberBand;
/* This data structure represents the state of all the tool-bars and dock-widgets. It's value based
@@ -278,12 +279,12 @@ public:
// animations
- QWidgetAnimator *widgetAnimator;
+ QWidgetAnimator widgetAnimator;
QList<int> currentGapPos;
QRect currentGapRect;
QWidget *pluggingWidget;
#ifndef QT_NO_RUBBERBAND
- QRubberBand *gapIndicator;
+ QRubberBand gapIndicator;
#endif
QList<int> hover(QLayoutItem *widgetItem, const QPoint &mousePos);
@@ -295,10 +296,10 @@ public:
void applyState(QMainWindowLayoutState &newState, bool animate = true);
void restore(bool keepSavedState = false);
void updateHIToolBarStatus();
-
-private slots:
void animationFinished(QWidget *widget);
void allAnimationsFinished();
+
+private slots:
#ifndef QT_NO_DOCKWIDGET
#ifndef QT_NO_TABBAR
void tabChanged();