DockWidgetPanel Class
Implements the panel for docking that contains QWidget. More...
Header: | #include <DockWidgetPanel> |
Inherits: | DockPanelBase |
Inherited By: |
Public Types
flags | DockPanelFeatures |
Public Functions
void | activate() |
Qtitan::DockPanelAreas | allowedAreas() const |
const QString & | caption() const |
void | deactivate() |
DockWidgetPanel::DockPanelFeatures | features() const |
QIcon | icon() const |
bool | isActive() const |
bool | isAreaAllowed(Qtitan::DockPanelAreas area) const |
bool | isAutoHide() const |
bool | isClosed() const |
bool | isFloat() const |
void | setAllowedAreas(Qtitan::DockPanelAreas areas) |
void | setFeatures(DockWidgetPanel::DockPanelFeatures features) |
void | setFloat(bool _float) |
void | setIcon(const QIcon &icon) |
QAction * | visibleAction() const |
Public Slots
void | setCaption(const QString &caption) |
Signals
void | allowedAreasChanged(Qtitan::DockPanelAreas allowedAreas) |
void | featuresChanged(DockWidgetPanel::DockPanelFeatures features) |
Reimplemented Protected Functions
virtual bool | event(QEvent *event) override |
virtual void | paintEvent(QPaintEvent *event) override |
virtual void | resizeEvent(QResizeEvent *event) override |
Detailed Description
See also DockLayoutPanel.
Member Function Documentation
void DockWidgetPanel::activate()
Activates the panel and move the focus to the first QWidget on this panel.
Qtitan::DockPanelAreas DockWidgetPanel::allowedAreas() const
Returns the bit mask of the flags in which areas the docking of this panel is allowed.
Note: Getter function for property allowedAreas.
See also setAllowedAreas().
void DockWidgetPanel::deactivate()
Deactivates the panel and blurs the focus.
[override virtual protected]
bool DockWidgetPanel::event(QEvent *event)
Reimplements: QWidget::event(QEvent *event).
bool DockWidgetPanel::isActive() const
Returns true if the panel is active, otherwise returns false.
bool DockWidgetPanel::isAreaAllowed(Qtitan::DockPanelAreas area) const
Returns true if the panel can be docked to area otherwise returns false.
bool DockWidgetPanel::isFloat() const
Returns true if the panel is float.
Note: Getter function for property isFloat.
[override virtual protected]
void DockWidgetPanel::paintEvent(QPaintEvent *event)
Reimplements: QWidget::paintEvent(QPaintEvent *event).
[override virtual protected]
void DockWidgetPanel::resizeEvent(QResizeEvent *event)
Reimplements: QWidget::resizeEvent(QResizeEvent *event).
void DockWidgetPanel::setAllowedAreas(Qtitan::DockPanelAreas areas)
Sets the bit mask of the flags in which areas the docking of this panel is allowed.
Note: Setter function for property allowedAreas.
See also allowedAreas().
void DockWidgetPanel::setFloat(bool _float)
Determines whether the panel is floating or not. If the parameter _float is true the panel should be floating. In floating mode, the panel is placed on a separate top-level window.
Note: Setter function for property isFloat.
See also isFloat().
QAction *DockWidgetPanel::visibleAction() const
Returns QAction that can be used to control this panel visibility.