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

A widget for displaying and editing integer values. More...

#include <widget_factory.h>

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

Signals

void valueChanged (const QString &value)
 Emitted when the integer value changes.

Public Member Functions

 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.

Detailed Description

A widget for displaying and editing integer values.

Constructor & Destructor Documentation

◆ 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
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::IntegerWidget::setAcceptVariable ( bool accept)

Sets the widget to accept variables.

Parameters
valueThe value to set.

◆ valueChanged

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

Emitted when the integer 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