A widget for displaying and editing integer values.
More...
#include <widget_factory.h>
|
| void | valueChanged (const QString &value) |
| | Emitted when the integer value changes.
|
|
| | IntegerWidget (const QString &label, const QString &placeholder, WidgetAlignment alignment, QWidget *parent, int min=INT32_MIN, int max=INT32_MAX) |
| | Constructs an integer input widget.
|
| void | setAcceptVariable (bool accept) |
| | Sets the widget to accept variables.
|
A widget for displaying and editing integer values.
◆ IntegerWidget()
| maki::IntegerWidget::IntegerWidget |
( |
const QString & | label, |
|
|
const QString & | placeholder, |
|
|
WidgetAlignment | alignment, |
|
|
QWidget * | parent, |
|
|
int | min = INT32_MIN, |
|
|
int | max = INT32_MAX ) |
Constructs an integer input widget.
- Parameters
-
| label | The label shown next to the widget. |
| placeholder | The placeholder text shown in the input field. |
| alignment | The alignment/layout behaviour to use. |
| parent | The parent widget. |
| min | The minimum allowed value. |
| max | The maximum allowed value. |
◆ setAcceptVariable()
| void maki::IntegerWidget::setAcceptVariable |
( |
bool | accept | ) |
|
Sets the widget to accept variables.
- Parameters
-
◆ valueChanged
| void maki::IntegerWidget::valueChanged |
( |
const QString & | value | ) |
|
|
signal |
Emitted when the integer 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