The TabBarInfo class Class for informations about tabs.
More...
#include <tabbarinfo.h>
The TabBarInfo class Class for informations about tabs.
Useful in case of custom tab widgets, like having tab control inside the title.
Definition at line 13 of file tabbarinfo.h.
TabBarInfo::TabBarInfo |
( |
QStackedWidget * |
parent | ) |
|
|
explicit |
bool TabBarInfo::addTab |
( |
int |
index, |
|
|
const QString & |
name |
|
) |
| |
addTab Add new tab
- Parameters
-
index | Stack index |
name | Tab name |
- Returns
- Success of the operation
Definition at line 14 of file tabbarinfo.cpp.
void TabBarInfo::attach |
( |
QTabBar * |
tabBar, |
|
|
QIcon * |
iconCloseTab |
|
) |
| |
attach Attack the tab bar
- Parameters
-
tabBar | Tab bar control |
iconCloseTab | Close tab icon |
Definition at line 68 of file tabbarinfo.cpp.
void TabBarInfo::clear |
( |
| ) |
|
clear Remove all tabs except the first one which is not closable
Definition at line 101 of file tabbarinfo.cpp.
void TabBarInfo::detach |
( |
| ) |
|
void TabBarInfo::on_closeButtonClick |
( |
| ) |
|
|
slot |
on_closeButtonClick Slot for close button click
Definition at line 134 of file tabbarinfo.cpp.
void TabBarInfo::on_currentChanged |
( |
int |
index | ) |
|
|
slot |
on_currentChanged Slot for changing the tab bar index
- Parameters
-
Definition at line 121 of file tabbarinfo.cpp.
void TabBarInfo::removeTab |
( |
int |
index | ) |
|
void TabBarInfo::setCurrent |
( |
int |
index | ) |
|
setCurrent Set current index
- Parameters
-
Definition at line 95 of file tabbarinfo.cpp.
void TabBarInfo::setTabVisible |
( |
int |
index, |
|
|
bool |
visible |
|
) |
| |
setTabVisible Set tab visible
- Parameters
-
index | Stack index |
visible | true: visible, false: not visible |
Definition at line 59 of file tabbarinfo.cpp.
void TabBarInfo::update |
( |
| ) |
|
|
private |
bool TabBarInfo::m_attached |
|
private |
int TabBarInfo::m_current |
|
private |
QIcon* TabBarInfo::m_iconCloseTab |
|
private |
QMap<int, QString> TabBarInfo::m_mapName |
|
private |
QMap<int, int> TabBarInfo::m_mapTabInfo |
|
private |
QMap<int, bool> TabBarInfo::m_mapVisible |
|
private |
QStackedWidget* TabBarInfo::m_stack |
|
private |
QTabBar* TabBarInfo::m_tabBar |
|
private |
The documentation for this class was generated from the following files: