QwwConfigWidget Class
A multipage container widget organizing configuration pages More...
Header: | #include <QwwConfigWidget> |
Properties
- count : const int
- currentIndex : int
- iconSize : QSize
Public Functions
QwwConfigWidget(QWidget * parent = 0) | |
void | addGroup(QWidget * group, const QIcon & icon = QIcon(), const QString & name = QString()) |
int | count() const |
QWidget * | currentGroup() const |
int | currentIndex() const |
QWidget * | group(int index) const |
QSize | iconSize() const |
void | insertGroup(int index, QWidget * group, const QIcon & icon = QIcon(), const QString & label = QString()) |
void | removeGroup(QWidget * group) |
void | removeGroup(int index) |
Public Slots
void | setCurrentGroup(QWidget * widget) |
void | setCurrentIndex(int index) |
void | setGroupIcon(int index, const QIcon & icon) |
void | setGroupLabel(int index, const QString & title) |
void | setIconSize(const QSize &) |
Signals
void | currentIndexChanged(int index) |
Detailed Description
A multipage container widget organizing configuration pages
Property Documentation
count : const int
This property holds this property holds the number of pages in the widget.
Access functions:
int | count() const |
currentIndex : int
This property holds index of the currently selected group.
Access functions:
int | currentIndex() const |
void | setCurrentIndex(int index) |
iconSize : QSize
This property holds this property holds the icon size used for this button.
The default size is defined by the GUI style. This is a maximum size for the icons. Smaller icons will not be scaled up.
Access functions:
QSize | iconSize() const |
void | setIconSize(const QSize &) |
Member Function Documentation
QwwConfigWidget::QwwConfigWidget(QWidget * parent = 0)
Constructs a config widget with a given parent.
void QwwConfigWidget::addGroup(QWidget * group, const QIcon & icon = QIcon(), const QString & name = QString())
Appends a new group with icon icon and label name into the widget
See also insertGroup().
QWidget * QwwConfigWidget::currentGroup() const
Returns a configuration group widget that is currently selected.
See also setCurrentGroup() and group().
void QwwConfigWidget::currentIndexChanged(int index) [signal]
This signal is emitted when current page of the widget is changed to index.
QWidget * QwwConfigWidget::group(int index) const
Returns a configuration group widget with a specified index.
See also currentGroup().
void QwwConfigWidget::insertGroup(int index, QWidget * group, const QIcon & icon = QIcon(), const QString & label = QString())
Inserts a new group with an icon and a label to the widget at arbitrary index.
See also addGroup().
void QwwConfigWidget::removeGroup(QWidget * group)
Removes group from the widget.
void QwwConfigWidget::removeGroup(int index)
This is an overloaded function.
void QwwConfigWidget::setCurrentGroup(QWidget * widget) [slot]
Sets the currently selected group to the specified widget.
See also currentGroup().
void QwwConfigWidget::setGroupIcon(int index, const QIcon & icon) [slot]
Sets icon as the icon of group specified by index.
void QwwConfigWidget::setGroupLabel(int index, const QString & title) [slot]
Sets title as the label of a group specified by index.