libyui-qt  2.43.5
 All Classes Functions Variables
QY2ComboTabWidget Class Reference

#include <QY2ComboTabWidget.h>

Inheritance diagram for QY2ComboTabWidget:

Public Slots

void showPage (QWidget *page)
 

Signals

void currentChanged (QWidget *newCurrentPage)
 

Public Member Functions

 QY2ComboTabWidget (const QString &combo_box_label, QWidget *parent=0, const char *name=0)
 
virtual ~QY2ComboTabWidget ()
 
void addPage (const QString &page_label, QWidget *page)
 

Protected Slots

void showPageIndex (int index)
 

Protected Attributes

QComboBox * combo_box
 
QLabel * combo_label
 
QStackedWidget * widget_stack
 
QHash< int, QWidget * > pages
 

Detailed Description

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 44 of file QY2ComboTabWidget.h.

Constructor & Destructor Documentation

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 46 of file QY2ComboTabWidget.cc.

QY2ComboTabWidget::~QY2ComboTabWidget ( )
virtual

Destructor.

Definition at line 85 of file QY2ComboTabWidget.cc.

Member Function Documentation

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 92 of file QY2ComboTabWidget.cc.

void QY2ComboTabWidget::currentChanged ( QWidget *  newCurrentPage)
signal

Emitted when the current page changes. NOT emitted initially for the very first page that is shown.

void QY2ComboTabWidget::showPage ( QWidget *  page)
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 122 of file QY2ComboTabWidget.cc.

void QY2ComboTabWidget::showPageIndex ( int  index)
protectedslot

Show a page identified by its index. Does NOT update the combo box contents.

Definition at line 104 of file QY2ComboTabWidget.cc.


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