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

A widget wrapping a push button with optional description and icon support. More...

#include <widget_factory.h>

Inheritance diagram for maki::ButtonWidget:

Signals

void valueChanged ()
 Emitted when the button is activated.

Public Member Functions

 ButtonWidget (const QString &label, QWidget *parent)
 Constructs a button widget.
void addDescription (const QString &label)
 Adds a descriptive label or help text to the widget.
void setIcon (const QIcon &icon)
 Sets the button icon.
void setToolTip (const QString &tooltip)
 Sets the tooltip shown for the button.
void setText (const QString &text)
 Sets the text shown in the button.

Private Attributes

QPushButton * mInputField
 Push button used by this widget.

Detailed Description

A widget wrapping a push button with optional description and icon support.

Constructor & Destructor Documentation

◆ ButtonWidget()

maki::ButtonWidget::ButtonWidget ( const QString & label,
QWidget * parent )

Constructs a button widget.

Parameters
labelThe text shown on the button or alongside it.
parentThe parent widget.

Member Function Documentation

◆ addDescription()

void maki::ButtonWidget::addDescription ( const QString & label)

Adds a descriptive label or help text to the widget.

Parameters
labelThe description text.

◆ setIcon()

void maki::ButtonWidget::setIcon ( const QIcon & icon)

Sets the button icon.

Parameters
iconThe icon to display.

◆ setText()

void maki::ButtonWidget::setText ( const QString & text)

Sets the text shown in the button.

Parameters
textThe text to be shown.

◆ setToolTip()

void maki::ButtonWidget::setToolTip ( const QString & tooltip)

Sets the tooltip shown for the button.

Parameters
tooltipThe tooltip text.

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