fix checkbox error
This commit is contained in:
2026-02-14 14:30:53 +01:00
parent d04493105f
commit 45aeb3f258
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ UI_checkbox::UI_checkbox(const json &j, QObject *parent) : UI_item(UI_CHECKBOX_T
from_json(j); from_json(j);
} }
void UI_checkbox::clicked() void UI_checkbox::click()
{ {
m_checked = !m_checked; m_checked = !m_checked;
emit value_changed(); emit value_changed();
+1 -1
View File
@@ -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(std::string text, Color fg_color, Color bg_color, QObject *parent = nullptr);
UI_checkbox(const json &j, QObject *parent = nullptr); UI_checkbox(const json &j, QObject *parent = nullptr);
void clicked(); void click() override;
void set_state(bool state); void set_state(bool state);
bool state() const; bool state() const;