41 class CDockAreaWidget;
42 struct DockWidgetTabPrivate;
53 Q_PROPERTY(
bool activeTab READ isActiveTab WRITE setActiveTab NOTIFY activeTabChanged)
54 Q_PROPERTY(QSize iconSize READ iconSize WRITE setIconSize)
61 void onDockWidgetFeaturesChanged();
64 void detachDockWidget();
67 virtual
void mousePressEvent(QMouseEvent* ev)
override;
68 virtual
void mouseReleaseEvent(QMouseEvent* ev)
override;
69 virtual
void mouseMoveEvent(QMouseEvent* ev)
override;
70 virtual
void contextMenuEvent(QContextMenuEvent* ev)
override;
75 virtual
void mouseDoubleClickEvent(QMouseEvent *event)
override;
94 bool isActiveTab() const;
99 void setActiveTab(
bool active);
122 void setIcon(const QIcon& Icon);
127 const QIcon& icon() const;
132 QString text() const;
137 void setText(const QString& title);
142 bool isTitleElided() const;
147 bool isClosable() const;
152 virtual
bool event(QEvent *e)
override;
157 void setElideMode(Qt::TextElideMode mode);
169 QSize iconSize() const;
176 void setIconSize(const QSize& Size);
179 virtual
void setVisible(
bool visible)
override;
182 void activeTabChanged();
184 void closeRequested();
185 void closeOtherTabsRequested();
186 void moved(const QPoint& GlobalPos);
187 void elidedChanged(
bool elided);
192 #endif // DockWidgetTabH