#include <DockWidgetTab.h>
Public Types | |
using | Super = QFrame |
Public Slots | |
virtual void | setVisible (bool visible) override |
Signals | |
void | activeTabChanged () |
void | clicked () |
void | closeOtherTabsRequested () |
void | closeRequested () |
void | elidedChanged (bool elided) |
void | moved (const QPoint &GlobalPos) |
Public Member Functions | |
CDockWidgetTab (CDockWidget *DockWidget, QWidget *parent=0) | |
CDockAreaWidget * | dockAreaWidget () const |
CDockWidget * | dockWidget () const |
virtual bool | event (QEvent *e) override |
const QIcon & | icon () const |
QSize | iconSize () const |
bool | isActiveTab () const |
bool | isClosable () const |
bool | isTitleElided () const |
void | setActiveTab (bool active) |
void | setDockAreaWidget (CDockAreaWidget *DockArea) |
void | setElideMode (Qt::TextElideMode mode) |
void | setIcon (const QIcon &Icon) |
void | setIconSize (const QSize &Size) |
void | setText (const QString &title) |
QString | text () const |
void | updateStyle () |
virtual | ~CDockWidgetTab () |
Protected Member Functions | |
virtual void | contextMenuEvent (QContextMenuEvent *ev) override |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *ev) override |
virtual void | mousePressEvent (QMouseEvent *ev) override |
virtual void | mouseReleaseEvent (QMouseEvent *ev) override |
Properties | |
bool | activeTab |
QSize | iconSize |
Private Slots | |
void | detachDockWidget () |
Private Member Functions | |
void | onDockWidgetFeaturesChanged () |
Private Attributes | |
DockWidgetTabPrivate * | d |
private data (pimpl) More... | |
Friends | |
class | CDockManager |
class | CDockWidget |
struct | DockWidgetTabPrivate |
A dock widget tab that shows a title and an icon. The dock widget tab is shown in the dock area title bar to switch between tabbed dock widgets
Definition at line 50 of file DockWidgetTab.h.
using ads::CDockWidgetTab::Super = QFrame |
Definition at line 78 of file DockWidgetTab.h.
ads::CDockWidgetTab::CDockWidgetTab | ( | CDockWidget * | DockWidget, |
QWidget * | parent = 0 |
||
) |
Default Constructor param[in] DockWidget The dock widget this title bar belongs to param[in] parent The parent widget of this title bar
Definition at line 327 of file DockWidgetTab.cpp.
|
virtual |
Virtual Destructor
Definition at line 341 of file DockWidgetTab.cpp.
|
signal |
|
signal |
|
signal |
|
signal |
|
overrideprotectedvirtual |
Definition at line 474 of file DockWidgetTab.cpp.
|
privateslot |
Definition at line 660 of file DockWidgetTab.cpp.
CDockAreaWidget * ads::CDockWidgetTab::dockAreaWidget | ( | ) | const |
Returns the dock area widget this title bar belongs to.
Definition at line 560 of file DockWidgetTab.cpp.
CDockWidget * ads::CDockWidgetTab::dockWidget | ( | ) | const |
Returns the dock widget this title widget belongs to
Definition at line 546 of file DockWidgetTab.cpp.
|
signal |
|
overridevirtual |
Track event ToolTipChange and set child ToolTip
Definition at line 673 of file DockWidgetTab.cpp.
const QIcon & ads::CDockWidgetTab::icon | ( | ) | const |
Returns the icon
Definition at line 599 of file DockWidgetTab.cpp.
QSize ads::CDockWidgetTab::iconSize | ( | ) | const |
Returns the icon size. If no explicit icon size has been set, the function returns an invalid QSize
bool ads::CDockWidgetTab::isActiveTab | ( | ) | const |
Returns true, if this is the active tab
Definition at line 501 of file DockWidgetTab.cpp.
bool ads::CDockWidgetTab::isClosable | ( | ) | const |
This function returns true if the assigned dock widget is closable
Definition at line 653 of file DockWidgetTab.cpp.
bool ads::CDockWidgetTab::isTitleElided | ( | ) | const |
Returns true if text is elided on the tab's title
Definition at line 645 of file DockWidgetTab.cpp.
|
overrideprotectedvirtual |
Double clicking the tab widget makes the assigned dock widget floating
Definition at line 613 of file DockWidgetTab.cpp.
|
overrideprotectedvirtual |
Definition at line 397 of file DockWidgetTab.cpp.
|
overrideprotectedvirtual |
Definition at line 349 of file DockWidgetTab.cpp.
|
overrideprotectedvirtual |
Definition at line 365 of file DockWidgetTab.cpp.
|
signal |
|
private |
Definition at line 687 of file DockWidgetTab.cpp.
void ads::CDockWidgetTab::setActiveTab | ( | bool | active | ) |
Set this true to make this tab the active tab
Definition at line 508 of file DockWidgetTab.cpp.
void ads::CDockWidgetTab::setDockAreaWidget | ( | CDockAreaWidget * | DockArea | ) |
Sets the dock area widget the dockWidget returned by dockWidget() function belongs to.
Definition at line 553 of file DockWidgetTab.cpp.
void ads::CDockWidgetTab::setElideMode | ( | Qt::TextElideMode | mode | ) |
Sets the text elide mode
Definition at line 695 of file DockWidgetTab.cpp.
void ads::CDockWidgetTab::setIcon | ( | const QIcon & | Icon | ) |
Sets the icon to show in title bar
Definition at line 567 of file DockWidgetTab.cpp.
void ads::CDockWidgetTab::setIconSize | ( | const QSize & | Size | ) |
Set an explicit icon size. If no icon size has been set explicitely, than the tab sets the icon size depending on the style
Definition at line 716 of file DockWidgetTab.cpp.
void ads::CDockWidgetTab::setText | ( | const QString & | title | ) |
Sets the tab text
Definition at line 638 of file DockWidgetTab.cpp.
|
overridevirtualslot |
Definition at line 630 of file DockWidgetTab.cpp.
QString ads::CDockWidgetTab::text | ( | ) | const |
Returns the tab text
Definition at line 606 of file DockWidgetTab.cpp.
void ads::CDockWidgetTab::updateStyle | ( | ) |
Update stylesheet style if a property changes
Definition at line 702 of file DockWidgetTab.cpp.
|
friend |
Definition at line 60 of file DockWidgetTab.h.
|
friend |
Definition at line 59 of file DockWidgetTab.h.
|
friend |
Definition at line 58 of file DockWidgetTab.h.
|
private |
private data (pimpl)
Definition at line 57 of file DockWidgetTab.h.
|
readwrite |
Definition at line 53 of file DockWidgetTab.h.
|
readwrite |
Definition at line 54 of file DockWidgetTab.h.