Public Member Functions | |
QAbstractButton * | createCloseButton () const |
template<typename T > | |
IFloatingWidget * | createFloatingWidget (T *Widget, bool OpaqueUndocking) |
void | createLayout () |
DockWidgetTabPrivate (CDockWidgetTab *_public) | |
bool | isDraggingState (eDragState dragState) const |
void | moveTab (QMouseEvent *ev) |
void | saveDragStartMousePosition (const QPoint &GlobalPos) |
bool | startFloating (eDragState DraggingState=DraggingFloatingWidget) |
bool | testConfigFlag (CDockManager::eConfigFlag Flag) const |
void | updateCloseButtonSizePolicy () |
void | updateCloseButtonVisibility (bool active) |
void | updateIcon () |
Public Attributes | |
CDockWidgetTab * | _this |
QAbstractButton * | CloseButton = nullptr |
CDockAreaWidget * | DockArea = nullptr |
CDockWidget * | DockWidget |
QPoint | DragStartMousePosition |
eDragState | DragState = DraggingInactive |
IFloatingWidget * | FloatingWidget = nullptr |
QPoint | GlobalDragStartMousePosition |
QIcon | Icon |
QLabel * | IconLabel = nullptr |
QSize | IconSize |
QSpacerItem * | IconTextSpacer |
bool | IsActiveTab = false |
QPoint | TabDragStartPosition |
tTabLabel * | TitleLabel |
Private data class of CDockWidgetTab class (pimpl)
Definition at line 63 of file DockWidgetTab.cpp.
ads::DockWidgetTabPrivate::DockWidgetTabPrivate | ( | CDockWidgetTab * | _public | ) |
Private data constructor
Definition at line 215 of file DockWidgetTab.cpp.
|
inline |
Creates the close button as QPushButton or as QToolButton
Definition at line 123 of file DockWidgetTab.cpp.
|
inline |
Definition at line 163 of file DockWidgetTab.cpp.
void ads::DockWidgetTabPrivate::createLayout | ( | ) |
Creates the complete layout including all controls
Definition at line 223 of file DockWidgetTab.cpp.
|
inline |
Test function for current drag state
Definition at line 99 of file DockWidgetTab.cpp.
void ads::DockWidgetTabPrivate::moveTab | ( | QMouseEvent * | ev | ) |
Moves the tab depending on the position in the given mouse event
Definition at line 259 of file DockWidgetTab.cpp.
|
inline |
Saves the drag start position in global and local coordinates
Definition at line 183 of file DockWidgetTab.cpp.
bool ads::DockWidgetTabPrivate::startFloating | ( | eDragState | DraggingState = DraggingFloatingWidget | ) |
Starts floating of the dock widget that belongs to this title bar Returns true, if floating has been started and false if floating is not possible for any reason
Definition at line 273 of file DockWidgetTab.cpp.
|
inline |
Returns true if the given config flag is set
Definition at line 115 of file DockWidgetTab.cpp.
|
inline |
Update the size policy of the close button depending on the RetainTabSizeWhenCloseButtonHidden feature
Definition at line 153 of file DockWidgetTab.cpp.
|
inline |
Update the close button visibility from current feature/config
Definition at line 140 of file DockWidgetTab.cpp.
|
inline |
Update the icon in case the icon size changed
Definition at line 192 of file DockWidgetTab.cpp.
CDockWidgetTab* ads::DockWidgetTabPrivate::_this |
Definition at line 65 of file DockWidgetTab.cpp.
QAbstractButton* ads::DockWidgetTabPrivate::CloseButton = nullptr |
Definition at line 76 of file DockWidgetTab.cpp.
CDockAreaWidget* ads::DockWidgetTabPrivate::DockArea = nullptr |
Definition at line 72 of file DockWidgetTab.cpp.
CDockWidget* ads::DockWidgetTabPrivate::DockWidget |
Definition at line 66 of file DockWidgetTab.cpp.
QPoint ads::DockWidgetTabPrivate::DragStartMousePosition |
Definition at line 70 of file DockWidgetTab.cpp.
eDragState ads::DockWidgetTabPrivate::DragState = DraggingInactive |
Definition at line 73 of file DockWidgetTab.cpp.
IFloatingWidget* ads::DockWidgetTabPrivate::FloatingWidget = nullptr |
Definition at line 74 of file DockWidgetTab.cpp.
QPoint ads::DockWidgetTabPrivate::GlobalDragStartMousePosition |
Definition at line 69 of file DockWidgetTab.cpp.
QIcon ads::DockWidgetTabPrivate::Icon |
Definition at line 75 of file DockWidgetTab.cpp.
QLabel* ads::DockWidgetTabPrivate::IconLabel = nullptr |
Definition at line 67 of file DockWidgetTab.cpp.
QSize ads::DockWidgetTabPrivate::IconSize |
Definition at line 79 of file DockWidgetTab.cpp.
QSpacerItem* ads::DockWidgetTabPrivate::IconTextSpacer |
Definition at line 77 of file DockWidgetTab.cpp.
bool ads::DockWidgetTabPrivate::IsActiveTab = false |
Definition at line 71 of file DockWidgetTab.cpp.
QPoint ads::DockWidgetTabPrivate::TabDragStartPosition |
Definition at line 78 of file DockWidgetTab.cpp.
tTabLabel* ads::DockWidgetTabPrivate::TitleLabel |
Definition at line 68 of file DockWidgetTab.cpp.