diff --git a/src/UI/UI_checkbox.cpp b/src/UI/UI_checkbox.cpp index 58bf40d..4bf06a4 100644 --- a/src/UI/UI_checkbox.cpp +++ b/src/UI/UI_checkbox.cpp @@ -14,7 +14,7 @@ UI_checkbox::UI_checkbox(const json &j, QObject *parent) : UI_item(UI_CHECKBOX_T from_json(j); } -void UI_checkbox::clicked() +void UI_checkbox::click() { m_checked = !m_checked; emit value_changed(); diff --git a/src/UI/UI_checkbox.hpp b/src/UI/UI_checkbox.hpp index 8ad0bd6..f18bdd1 100644 --- a/src/UI/UI_checkbox.hpp +++ b/src/UI/UI_checkbox.hpp @@ -12,7 +12,7 @@ class UI_checkbox : public UI_item UI_checkbox(std::string text, Color fg_color, Color bg_color, QObject *parent = nullptr); UI_checkbox(const json &j, QObject *parent = nullptr); - void clicked(); + void click() override; void set_state(bool state); bool state() const;