QtGui/qdockwidget.h Source File
Go to the documentation of this file.
42 #ifndef QDYNAMICDOCKWIDGET_H
43 #define QDYNAMICDOCKWIDGET_H
53 #ifndef QT_NO_DOCKWIDGET
55 class QDockAreaLayout;
56 class QDockWidgetPrivate;
65 Q_PROPERTY(
bool floating READ isFloating WRITE setFloating)
66 Q_PROPERTY(DockWidgetFeatures features READ features WRITE setFeatures NOTIFY featuresChanged)
67 Q_PROPERTY(
Qt::DockWidgetAreas allowedAreas READ allowedAreas
68 WRITE setAllowedAreas NOTIFY allowedAreasChanged)
77 void setWidget(
QWidget *widget);
80 DockWidgetClosable = 0x01,
81 DockWidgetMovable = 0x02,
82 DockWidgetFloatable = 0x04,
83 DockWidgetVerticalTitleBar = 0x08,
85 DockWidgetFeatureMask = 0x0f,
86 AllDockWidgetFeatures = DockWidgetClosable|DockWidgetMovable|DockWidgetFloatable,
87 NoDockWidgetFeatures = 0x00,
91 Q_DECLARE_FLAGS(DockWidgetFeatures, DockWidgetFeature)
93 void setFeatures(DockWidgetFeatures features);
94 DockWidgetFeatures features() const;
96 void setFloating(
bool floating);
99 void setAllowedAreas(Qt::DockWidgetAreas areas);
100 Qt::DockWidgetAreas allowedAreas()
const;
102 void setTitleBarWidget(
QWidget *widget);
103 QWidget *titleBarWidget()
const;
106 {
return (allowedAreas() & area) == area; }
109 QAction *toggleViewAction()
const;
113 void featuresChanged(QDockWidget::DockWidgetFeatures features);
114 void topLevelChanged(
bool topLevel);
115 void allowedAreasChanged(Qt::DockWidgetAreas allowedAreas);
116 void visibilityChanged(
bool visible);
131 friend class QDockAreaLayout;
132 friend class QDockWidgetItem;
133 friend class QMainWindowLayout;
134 friend class QDockWidgetLayout;
135 friend class QDockAreaLayoutInfo;
138 Q_DECLARE_OPERATORS_FOR_FLAGS(
QDockWidget::DockWidgetFeatures)
140 #endif // QT_NO_DOCKWIDGET
146 #endif // QDYNAMICDOCKWIDGET_H
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
#define Q_PRIVATE_SLOT(d, signature)
#define QT_BEGIN_NAMESPACE