Maki
Formally verfied low-code orchestration
Loading...
Searching...
No Matches
maki::FloatWidget Class Reference

A widget for displaying and editing floating-point values. More...

#include <widget_factory.h>

Inheritance diagram for maki::FloatWidget:
maki::TypedInputWidget< oclero::qlementine::LineEdit > maki::InputWidget

Signals

void valueChanged (const QString &value)
 Emitted when the floating-point value changes.

Public Member Functions

 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.

Detailed Description

A widget for displaying and editing floating-point values.

Constructor & Destructor Documentation

◆ 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
labelThe label shown next to the widget.
placeholderThe placeholder text shown in the input field.
alignmentThe alignment/layout behaviour to use.
parentThe parent widget.
minThe minimum allowed value.
maxThe maximum allowed value.

Member Function Documentation

◆ setAcceptVariable()

void maki::FloatWidget::setAcceptVariable ( bool accept)

Sets the widget to accept variables.

Parameters
valueThe value to set.

◆ valueChanged

void maki::FloatWidget::valueChanged ( const QString & value)
signal

Emitted when the floating-point value changes.

Parameters
valueThe new value.

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