A widget wrapping a push button with optional description and icon support.
More...
#include <widget_factory.h>
|
|
void | valueChanged () |
| | Emitted when the button is activated.
|
|
| | 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.
|
|
|
QPushButton * | mInputField |
| | Push button used by this widget.
|
A widget wrapping a push button with optional description and icon support.
◆ ButtonWidget()
| maki::ButtonWidget::ButtonWidget |
( |
const QString & | label, |
|
|
QWidget * | parent ) |
Constructs a button widget.
- Parameters
-
| label | The text shown on the button or alongside it. |
| parent | The parent widget. |
◆ addDescription()
| void maki::ButtonWidget::addDescription |
( |
const QString & | label | ) |
|
Adds a descriptive label or help text to the widget.
- Parameters
-
| label | The description text. |
◆ setIcon()
| void maki::ButtonWidget::setIcon |
( |
const QIcon & | icon | ) |
|
Sets the button icon.
- Parameters
-
◆ setText()
| void maki::ButtonWidget::setText |
( |
const QString & | text | ) |
|
Sets the text shown in the button.
- Parameters
-
| text | The text to be shown. |
◆ setToolTip()
| void maki::ButtonWidget::setToolTip |
( |
const QString & | tooltip | ) |
|
Sets the tooltip shown for the button.
- 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