4 #include <QStackedWidget> 49 void attach(QTabBar* tabBar, QIcon* iconCloseTab);
96 #endif // TABBARINFO_H void on_closeButtonClick()
on_closeButtonClick Slot for close button click
void setTabVisible(int index, bool visible)
setTabVisible Set tab visible
void removeTab(int index)
removeTab Removing tab
TabBarInfo(QStackedWidget *parent)
TabBarInfo Constructor.
void attach(QTabBar *tabBar, QIcon *iconCloseTab)
attach Attack the tab bar
bool addTab(int index, const QString &name)
addTab Add new tab
void setCurrent(int index)
setCurrent Set current index
QMap< int, int > m_mapTabInfo
void update()
update Update the GUI
void detach()
detach Detach the tab bar
void clear()
clear Remove all tabs except the first one which is not closable
void on_currentChanged(int index)
on_currentChanged Slot for changing the tab bar index
QMap< int, QString > m_mapName
QMap< int, bool > m_mapVisible
The TabBarInfo class Class for informations about tabs.