mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
UI
fix checkbox error
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user