DockableTabBar Class Reference

Signals

void currentChanged (int idx)
 
void tabCloseRequested (int idx)
 
void tabMoved (int oldIdx, int newIdx)
 
void newWindowForTab (int idx, QRect rectHint)
 
void reparentTab (int oldIdx, DockableTabWidget *target, int newIdx)
 
void splitTab (int idx, Qt::Edge edge)
 

Public Member Functions

 DockableTabBar (DockableTabCollection *collection)
 
virtual ~DockableTabBar ()
 
int addTab (const QString &title)
 
int insertTab (int idx, const QString &title)
 
void removeTab (int idx)
 
void setCurrentIndex (int idx)
 
void setTabText (int idx, const QString &title)
 
void setTabToolTip (int idx, const QString &toolTip)
 
void setTabModifiedIndicator (int idx, bool indicator)
 
void setCanCloseTab (int idx, bool canClose)
 
void setCanCreateNewWindow (bool canCreate)
 
void setCanSplit (bool canSplit)
 
int count () const
 
int currentIndex () const
 
int tabAt (const QPoint &pt)
 
QRect tabRect (int idx)
 
QString tabText (int idx)
 
QString tabToolTip (int idx)
 
bool tabModifiedIndicator (int idx)
 
bool canCloseTab (int idx)
 
bool canCreateNewWindow ()
 
bool canSplit ()
 
void ensureCurrentTabVisible ()
 
DockableTabStyletabStyle () const
 
void setTabStyle (DockableTabStyle *style)
 

Protected Member Functions

virtual QSize sizeHint () const override
 
virtual QSize minimumSizeHint () const override
 
virtual void paintEvent (QPaintEvent *event) override
 
virtual void enterEvent (QEnterEvent *event) override
 
virtual void leaveEvent (QEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseReleaseEvent (QMouseEvent *event) override
 
virtual void resizeEvent (QResizeEvent *event) override
 
virtual void wheelEvent (QWheelEvent *event) override
 

Constructor & Destructor Documentation

◆ DockableTabBar()

DockableTabBar::DockableTabBar ( DockableTabCollection collection)

◆ ~DockableTabBar()

virtual DockableTabBar::~DockableTabBar ( )
virtual

Member Function Documentation

◆ addTab()

int DockableTabBar::addTab ( const QString &  title)

◆ canCloseTab()

bool DockableTabBar::canCloseTab ( int  idx)

◆ canCreateNewWindow()

bool DockableTabBar::canCreateNewWindow ( )

◆ canSplit()

bool DockableTabBar::canSplit ( )

◆ count()

int DockableTabBar::count ( ) const

◆ currentChanged

void DockableTabBar::currentChanged ( int  idx)
signal

◆ currentIndex()

int DockableTabBar::currentIndex ( ) const

◆ ensureCurrentTabVisible()

void DockableTabBar::ensureCurrentTabVisible ( )

◆ enterEvent()

virtual void DockableTabBar::enterEvent ( QEnterEvent *  event)
overrideprotectedvirtual

◆ insertTab()

int DockableTabBar::insertTab ( int  idx,
const QString &  title 
)

◆ leaveEvent()

virtual void DockableTabBar::leaveEvent ( QEvent *  event)
overrideprotectedvirtual

◆ minimumSizeHint()

virtual QSize DockableTabBar::minimumSizeHint ( ) const
overrideprotectedvirtual

◆ mouseMoveEvent()

virtual void DockableTabBar::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedvirtual

◆ mousePressEvent()

virtual void DockableTabBar::mousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

◆ mouseReleaseEvent()

virtual void DockableTabBar::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotectedvirtual

◆ newWindowForTab

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

◆ paintEvent()

virtual void DockableTabBar::paintEvent ( QPaintEvent *  event)
overrideprotectedvirtual

◆ removeTab()

void DockableTabBar::removeTab ( int  idx)

◆ reparentTab

void DockableTabBar::reparentTab ( int  oldIdx,
DockableTabWidget target,
int  newIdx 
)
signal

◆ resizeEvent()

virtual void DockableTabBar::resizeEvent ( QResizeEvent *  event)
overrideprotectedvirtual

◆ setCanCloseTab()

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

◆ setCanCreateNewWindow()

void DockableTabBar::setCanCreateNewWindow ( bool  canCreate)

◆ setCanSplit()

void DockableTabBar::setCanSplit ( bool  canSplit)

◆ setCurrentIndex()

void DockableTabBar::setCurrentIndex ( int  idx)

◆ setTabModifiedIndicator()

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

◆ setTabStyle()

void DockableTabBar::setTabStyle ( DockableTabStyle style)

◆ setTabText()

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

◆ setTabToolTip()

void DockableTabBar::setTabToolTip ( int  idx,
const QString &  toolTip 
)

◆ sizeHint()

virtual QSize DockableTabBar::sizeHint ( ) const
overrideprotectedvirtual

◆ splitTab

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

◆ tabAt()

int DockableTabBar::tabAt ( const QPoint &  pt)

◆ tabCloseRequested

void DockableTabBar::tabCloseRequested ( int  idx)
signal

◆ tabModifiedIndicator()

bool DockableTabBar::tabModifiedIndicator ( int  idx)

◆ tabMoved

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

◆ tabRect()

QRect DockableTabBar::tabRect ( int  idx)

◆ tabStyle()

DockableTabStyle * DockableTabBar::tabStyle ( ) const
inline

◆ tabText()

QString DockableTabBar::tabText ( int  idx)

◆ tabToolTip()

QString DockableTabBar::tabToolTip ( int  idx)

◆ wheelEvent()

virtual void DockableTabBar::wheelEvent ( QWheelEvent *  event)
overrideprotectedvirtual

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