QwwNavigationBar Class Reference
Widget similar to MS Outlook navigation bar. More...
#include <QwwNavigationBar>
Inherits
QWidget
.
Properties
Public Functions
- QwwNavigationBar (QWidget *parent=0)
- void addWidget (QWidget *child, const QIcon &, const QString &label=QString::null)
- void addWidget (QWidget *child, const QString &label=QString::null)
- const QPushButton * button (int index) const
- int currentIndex () const
- int indexOf (QWidget *) const
- void insertWidget (int index, QWidget *child, const QIcon &, const QString &label=QString::null)
- void insertWidget (int index, QWidget *child, const QString &label=QString::null)
- void removeWidget (int index)
- void setCurrentWidget (QWidget *)
- void setWidgetIcon (int index, const QIcon &)
- void setWidgetLabel (int index, const QString &)
- bool topWidgetIsVisible () const
- QWidget * widget (int index) const
- int widgetCount () const
- QIcon widgetIcon (int index) const
- QString widgetLabel (int index) const
Public Slots
Signals
Protected Functions
Detailed Description
Widget similar to MS Outlook navigation bar.
Some details will follow...
Or even more....
Property Documentation
currentIndex : int
This property holds the index position of the current bar
Access functions
topWidgetVisible : bool
This property holds whether the top widget is visible
If this property is true then a widget containing the current group is shown at the top of the widget. This property is true by default.
Access functions
Member Function Documentation
void QwwNavigationBar::addWidget (QWidget *child, const QIcon &, const QString &label=QString::null)
Adds a widget to the navigation bar
void QwwNavigationBar::addWidget (QWidget *child, const QString &label=QString::null)
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
const QPushButton * QwwNavigationBar::button (int index) const
pointer to a button associated with a child under index
int QwwNavigationBar::currentIndex
This property holds the index position of the current bar
Access functions
int QwwNavigationBar::indexOf (QWidget *) const
Returns an index of a widget in the navigation bar
void QwwNavigationBar::insertWidget (int index, QWidget *child, const QIcon &, const QString &label=QString::null)
Inserts a widget to the navigation bar on a specified position
void QwwNavigationBar::insertWidget (int index, QWidget *child, const QString &label=QString::null)
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void QwwNavigationBar::removeWidget (int index)
Removes a widget from the navigation bar
void QwwNavigationBar::setCurrentIndex (int) [
slot
]
sets position index of the current child
void QwwNavigationBar::setTopWidgetVisible (bool) [
slot
]
Sets whether top widget is to be visible
void QwwNavigationBar::setWidgetIcon (int index, const QIcon &)
Associates icon with a widget under index
void QwwNavigationBar::setWidgetLabel (int index, const QString &)
Sets label as the title for the widget under index
bool QwwNavigationBar::topWidgetIsVisible () const
Returns true if the the top widget is visible; otherwise returns false.
See also setTopWidgetVisible()
and topWidgetVisible()
.
QwwNavigationBar::topWidgetVisible
This property holds whether the top widget is visible
If this property is true then a widget containing the current group is shown at the top of the widget. This property is true by default.
Access functions
QWidget * QwwNavigationBar::widget (int index) const
int QwwNavigationBar::widgetCount () const
number of widgets in the navigation bar
QIcon QwwNavigationBar::widgetIcon (int index) const
icon of the widget under index
QString QwwNavigationBar::widgetLabel (int index) const
label of the widget under index