A widget for displaying and editing integer values using a spin box.
More...
#include <widget_factory.h>
|
| void | valueChanged (const int value) |
| | Emitted when the spin box value changes.
|
|
| | SpinWidget (const QString &label, int placeholder, QWidget *parent, WidgetAlignment alignment, int min=INT32_MIN, int max=INT32_MAX) |
| | Constructs a spin box input widget.
|
| void | setSuffix (const QString &suffix) |
| | Sets the suffix displayed by the spin box.
|
A widget for displaying and editing integer values using a spin box.
◆ SpinWidget()
| maki::SpinWidget::SpinWidget |
( |
const QString & | label, |
|
|
int | placeholder, |
|
|
QWidget * | parent, |
|
|
WidgetAlignment | alignment, |
|
|
int | min = INT32_MIN, |
|
|
int | max = INT32_MAX ) |
Constructs a spin box input widget.
- Parameters
-
| label | The label shown next to the widget. |
| placeholder | The initial or placeholder-like value. |
| parent | The parent widget. |
| min | The minimum allowed value. |
| max | The maximum allowed value. |
◆ setSuffix()
| void maki::SpinWidget::setSuffix |
( |
const QString & | suffix | ) |
|
Sets the suffix displayed by the spin box.
- Parameters
-
◆ valueChanged
| void maki::SpinWidget::valueChanged |
( |
const int | value | ) |
|
|
signal |
Emitted when the spin box 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