42 #ifndef QDYNAMICDOCKWIDGET_H 43 #define QDYNAMICDOCKWIDGET_H 45 #include <QtGui/qwidget.h> 53 #ifndef QT_NO_DOCKWIDGET 66 DockWidgetFeatures features;
67 Qt::DockWidgetAreas allowedAreas;
79 DockWidgetClosable = 0x01,
80 DockWidgetMovable = 0x02,
81 DockWidgetFloatable = 0x04,
82 DockWidgetVerticalTitleBar = 0x08,
84 DockWidgetFeatureMask = 0x0f,
85 AllDockWidgetFeatures = DockWidgetClosable|DockWidgetMovable|DockWidgetFloatable,
86 NoDockWidgetFeatures = 0x00,
92 void setFeatures(DockWidgetFeatures features);
93 DockWidgetFeatures features()
const;
95 void setFloating(
bool floating);
98 void setAllowedAreas(Qt::DockWidgetAreas areas);
99 Qt::DockWidgetAreas allowedAreas()
const;
102 QWidget *titleBarWidget()
const;
105 {
return (allowedAreas() & area) ==
area; }
108 QAction *toggleViewAction()
const;
112 void featuresChanged(QDockWidget::DockWidgetFeatures features);
113 void topLevelChanged(
bool topLevel);
114 void allowedAreasChanged(Qt::DockWidgetAreas allowedAreas);
115 void visibilityChanged(
bool visible);
139 #endif // QT_NO_DOCKWIDGET 145 #endif // QDYNAMICDOCKWIDGET_H #define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
The QString class provides a Unicode character string.
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
The QMainWindow class provides a main application window.
#define Q_DECLARE_PRIVATE(Class)
The QPaintEvent class contains event parameters for paint events.
The QEvent class is the base class of all event classes.
The QCloseEvent class contains parameters that describe a close event.
The QAction class provides an abstract user interface action that can be inserted into widgets...
static int area(const QSize &s)