A widget for displaying and editing floating-point values.
More...
#include <widget_factory.h>
|
| void | valueChanged (const QString &value) |
| | Emitted when the floating-point value changes.
|
|
| | FloatWidget (const QString &label, const QString &placeholder, WidgetAlignment alignment, QWidget *parent, qreal min=std::numeric_limits< qreal >::min(), qreal max=std::numeric_limits< qreal >::max()) |
| | Constructs a floating-point input widget.
|
| void | setAcceptVariable (bool accept) |
| | Sets the widget to accept variables.
|
A widget for displaying and editing floating-point values.
◆ FloatWidget()
| maki::FloatWidget::FloatWidget |
( |
const QString & | label, |
|
|
const QString & | placeholder, |
|
|
WidgetAlignment | alignment, |
|
|
QWidget * | parent, |
|
|
qreal | min = std::numeric_limits<qreal>::min(), |
|
|
qreal | max = std::numeric_limits<qreal>::max() ) |
Constructs a floating-point 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::FloatWidget::setAcceptVariable |
( |
bool | accept | ) |
|
Sets the widget to accept variables.
- Parameters
-
◆ valueChanged
| void maki::FloatWidget::valueChanged |
( |
const QString & | value | ) |
|
|
signal |
Emitted when the floating-point 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