DockableTabWidget Class Reference

Signals

void tabCloseRequested (int idx)
 
void currentChanged (int idx)
 
void tabMoved (int oldIdx, int newIdx)
 
void newWindowForTab (int idx, QRect rectHint)
 
void tabRemovedForReparent (int oldIdx, QWidget *widget, DockableTabWidget *target, int newIdx)
 
void tabAddedForReparent (int idx, DockableTabWidget *source)
 
void splitTab (int idx, Qt::Edge edge)
 

Public Member Functions

 DockableTabWidget (DockableTabCollection *collection, DockableTabBar *bar=nullptr)
 
int addTab (QWidget *widget, const QString &title)
 
int insertTab (int idx, QWidget *widget, const QString &title)
 
void removeTab (int idx)
 
int count ()
 
int currentIndex ()
 
QWidget * currentWidget ()
 
QWidget * widget (int idx)
 
DockableTabBartabBar () const
 
QStackedWidget * container () const
 
DockableTabCollectioncollection () const
 
QString tabText (int idx)
 
bool tabModifiedIndicator (int idx)
 
bool canCloseTab (int idx)
 
bool canCreateNewWindow ()
 
bool canSplit ()
 
int indexOf (QWidget *widget)
 
void setCurrentIndex (int idx)
 
void setTabText (int idx, const QString &title)
 
void setTabModifiedIndicator (int idx, bool indicator)
 
void setCanCloseTab (int idx, bool canClose)
 
void setCanCreateNewWindow (bool canCreate)
 
void setCanSplit (bool canSplit)
 
void setCornerWidget (QWidget *widget, Qt::Corner corner=Qt::TopRightCorner)
 
Qt::Corner corner () const
 
QWidget * cornerWidget () const
 
DockableTabStyletabStyle () const
 
void setTabStyle (DockableTabStyle *style)
 
virtual QSize sizeHint () const override
 

Constructor & Destructor Documentation

◆ DockableTabWidget()

DockableTabWidget::DockableTabWidget ( DockableTabCollection collection,
DockableTabBar bar = nullptr 
)

Member Function Documentation

◆ addTab()

int DockableTabWidget::addTab ( QWidget *  widget,
const QString &  title 
)

◆ canCloseTab()

bool DockableTabWidget::canCloseTab ( int  idx)

◆ canCreateNewWindow()

bool DockableTabWidget::canCreateNewWindow ( )

◆ canSplit()

bool DockableTabWidget::canSplit ( )

◆ collection()

DockableTabCollection * DockableTabWidget::collection ( ) const
inline

◆ container()

QStackedWidget * DockableTabWidget::container ( ) const
inline

◆ corner()

Qt::Corner DockableTabWidget::corner ( ) const

◆ cornerWidget()

QWidget * DockableTabWidget::cornerWidget ( ) const

◆ count()

int DockableTabWidget::count ( )

◆ currentChanged

void DockableTabWidget::currentChanged ( int  idx)
signal

◆ currentIndex()

int DockableTabWidget::currentIndex ( )

◆ currentWidget()

QWidget * DockableTabWidget::currentWidget ( )

◆ indexOf()

int DockableTabWidget::indexOf ( QWidget *  widget)

◆ insertTab()

int DockableTabWidget::insertTab ( int  idx,
QWidget *  widget,
const QString &  title 
)

◆ newWindowForTab

void DockableTabWidget::newWindowForTab ( int  idx,
QRect  rectHint 
)
signal

◆ removeTab()

void DockableTabWidget::removeTab ( int  idx)

◆ setCanCloseTab()

void DockableTabWidget::setCanCloseTab ( int  idx,
bool  canClose 
)

◆ setCanCreateNewWindow()

void DockableTabWidget::setCanCreateNewWindow ( bool  canCreate)

◆ setCanSplit()

void DockableTabWidget::setCanSplit ( bool  canSplit)

◆ setCornerWidget()

void DockableTabWidget::setCornerWidget ( QWidget *  widget,
Qt::Corner  corner = Qt::TopRightCorner 
)

◆ setCurrentIndex()

void DockableTabWidget::setCurrentIndex ( int  idx)

◆ setTabModifiedIndicator()

void DockableTabWidget::setTabModifiedIndicator ( int  idx,
bool  indicator 
)

◆ setTabStyle()

void DockableTabWidget::setTabStyle ( DockableTabStyle style)

◆ setTabText()

void DockableTabWidget::setTabText ( int  idx,
const QString &  title 
)

◆ sizeHint()

virtual QSize DockableTabWidget::sizeHint ( ) const
overridevirtual

◆ splitTab

void DockableTabWidget::splitTab ( int  idx,
Qt::Edge  edge 
)
signal

◆ tabAddedForReparent

void DockableTabWidget::tabAddedForReparent ( int  idx,
DockableTabWidget source 
)
signal

◆ tabBar()

DockableTabBar * DockableTabWidget::tabBar ( ) const
inline

◆ tabCloseRequested

void DockableTabWidget::tabCloseRequested ( int  idx)
signal

◆ tabModifiedIndicator()

bool DockableTabWidget::tabModifiedIndicator ( int  idx)

◆ tabMoved

void DockableTabWidget::tabMoved ( int  oldIdx,
int  newIdx 
)
signal

◆ tabRemovedForReparent

void DockableTabWidget::tabRemovedForReparent ( int  oldIdx,
QWidget *  widget,
DockableTabWidget target,
int  newIdx 
)
signal

◆ tabStyle()

DockableTabStyle * DockableTabWidget::tabStyle ( ) const
inline

◆ tabText()

QString DockableTabWidget::tabText ( int  idx)

◆ widget()

QWidget * DockableTabWidget::widget ( int  idx)

The documentation for this class was generated from the following file: