Class ButtonProperty

Inheritance Relationships

Base Type

  • public Property

Class Documentation

class ButtonProperty : public Property

Public Functions

inline ButtonProperty(const QString &name, const QString &default_value, const QString &description = QString(), Property *parent = nullptr, const char *button_released_slot = nullptr, QObject *receiver = nullptr, std::optional<QColor> color = std::nullopt)
inline QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem&) override

Create a clickable button. Called when the property comes in focus.

inline void setEnabled(bool enabled = true)
inline bool getEnabled() const
inline void setInFocusValue(const std::string &value)
inline const std::string &getInFocusValue() const
inline void resetInFocusValue()
inline void setAtRestValue(const std::string &value)
inline const std::string &getAtRestValue() const
inline void resetAtRestValue()
inline void resetAllValues()