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

A widget for displaying and editing integer values using a spin box. More...

#include <widget_factory.h>

Inheritance diagram for maki::SpinWidget:
maki::TypedInputWidget< QSpinBox > maki::InputWidget

Signals

void valueChanged (const int value)
 Emitted when the spin box value changes.

Public Member Functions

 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.

Detailed Description

A widget for displaying and editing integer values using a spin box.

Constructor & Destructor Documentation

◆ 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
labelThe label shown next to the widget.
placeholderThe initial or placeholder-like value.
parentThe parent widget.
minThe minimum allowed value.
maxThe maximum allowed value.

Member Function Documentation

◆ setSuffix()

void maki::SpinWidget::setSuffix ( const QString & suffix)

Sets the suffix displayed by the spin box.

Parameters
suffixThe suffix text.

◆ valueChanged

void maki::SpinWidget::valueChanged ( const int value)
signal

Emitted when the spin box 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