libyui-qt
2.46.13
|
This widget is very much like a QTabWidget, but it uses a combo box above the tab pages rather than a ( scrolled ) one-line row of tabs. More...
#include <QY2ComboTabWidget.h>
Public Slots | |
void | showPage (QWidget *page) |
Show a page. More... | |
Signals | |
void | currentChanged (QWidget *newCurrentPage) |
Emitted when the current page changes. More... | |
Public Member Functions | |
QY2ComboTabWidget (const QString &combo_box_label, QWidget *parent=0, const char *name=0) | |
Constructor. More... | |
virtual | ~QY2ComboTabWidget () |
Destructor. | |
void | addPage (const QString &page_label, QWidget *page) |
Add a page. More... | |
Protected Slots | |
void | showPageIndex (int index) |
Show a page identified by its index. More... | |
Protected Attributes | |
QComboBox * | combo_box |
QLabel * | combo_label |
QStackedWidget * | widget_stack |
QHash< int, QWidget * > | pages |
This widget is very much like a QTabWidget, but it uses a combo box above the tab pages rather than a ( scrolled ) one-line row of tabs.
Definition at line 45 of file QY2ComboTabWidget.h.
QY2ComboTabWidget::QY2ComboTabWidget | ( | const QString & | combo_box_label, |
QWidget * | parent = 0 , |
||
const char * | name = 0 |
||
) |
Constructor.
'combo_box_label' is the user-visible label of the combo box that is used to switch between the different tab pages.
Definition at line 47 of file QY2ComboTabWidget.cc.
void QY2ComboTabWidget::addPage | ( | const QString & | page_label, |
QWidget * | page | ||
) |
Add a page.
'page_label' will be the user-visible combo box entry for that page.
Definition at line 93 of file QY2ComboTabWidget.cc.
|
signal |
Emitted when the current page changes.
NOT emitted initially for the very first page that is shown.
|
slot |
Show a page.
Updates the combo box contents accordingly. This is an expensive operation: All combo box items are searched for the item that corresponds to this page.
Definition at line 123 of file QY2ComboTabWidget.cc.
|
protectedslot |
Show a page identified by its index.
Does NOT update the combo box contents.
Definition at line 105 of file QY2ComboTabWidget.cc.