A widget for selecting one value from a list of options.
More...
#include <widget_factory.h>
|
| void | valueChanged (const QString &value) |
| | Emitted when the selected value changes.
|
|
| | SelectorWidget (const QString &label, WidgetAlignment alignment, QWidget *parent) |
| | Constructs a selector widget with an internally created combo box.
|
| | SelectorWidget (const QString &label, QComboBox *comboBox, WidgetAlignment alignment, QWidget *parent) |
| | Constructs a selector widget using an existing combo box.
|
| void | addItem (const QString &name, const QVariant &value) |
| | Adds an item to the selector.
|
A widget for selecting one value from a list of options.
◆ SelectorWidget() [1/2]
| maki::SelectorWidget::SelectorWidget |
( |
const QString & | label, |
|
|
WidgetAlignment | alignment, |
|
|
QWidget * | parent ) |
Constructs a selector widget with an internally created combo box.
- Parameters
-
| label | The label shown next to the widget. |
| parent | The parent widget. |
◆ SelectorWidget() [2/2]
| maki::SelectorWidget::SelectorWidget |
( |
const QString & | label, |
|
|
QComboBox * | comboBox, |
|
|
WidgetAlignment | alignment, |
|
|
QWidget * | parent ) |
Constructs a selector widget using an existing combo box.
- Parameters
-
| label | The label shown next to the widget. |
| comboBox | The combo box to use as the selector. |
| parent | The parent widget. |
◆ addItem()
| void maki::SelectorWidget::addItem |
( |
const QString & | name, |
|
|
const QVariant & | value ) |
Adds an item to the selector.
- Parameters
-
| name | The visible display name. |
| value | The underlying value associated with the item. |
◆ valueChanged
| void maki::SelectorWidget::valueChanged |
( |
const QString & | value | ) |
|
|
signal |
Emitted when the selected value changes.
- Parameters
-
The documentation for this class was generated from the following files:
- /__w/maki/maki/app/widgets/widget_factory.h
- /__w/maki/maki/app/widgets/widget_factory.cpp