fast::ButtonWidget class

A button widget.

Base classes

class Widget
Abstract base class of widgets.

Constructors, destructors, conversion operators

ButtonWidget(std::string text, bool checkable, std::function<void(bool)> callback, bool checked = false, QWidget* parent = nullptr)
ButtonWidget(std::string text, bool checkable, ButtonWidgetCallback* callback, bool checked = false, QWidget* parent = nullptr)

Public functions

void clicked(bool check)
void setChecked(bool checked)
auto getChecked() const -> bool
auto getText() const -> std::string
void setText(const std::string& text)
void setCallbackClass(ButtonWidgetCallback* callback)

Signals

void updateText(const QString& str)