This commit is contained in:
2026-02-14 14:30:51 +01:00
parent 78fc11e253
commit 2dd517fd77
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -571,9 +571,8 @@ void Simulator_base::setup_checkbox(QWidget *item, size_t index)
if (checkbox == nullptr)
return;
connect(checkbox, &QCheckBox::clicked, this, [=, this] {
m_web_socket->send_event(Web_socket_wrapper::Event::clicked, index);
});
connect(checkbox, &QCheckBox::clicked, this,
[=, this] { m_web_socket->send_event(Web_socket_wrapper::Event::clicked, index); });
}
void Simulator_base::setup_dial(QWidget *item, size_t index)
+1 -1
View File
@@ -11,7 +11,7 @@ class UI_checkbox : public UI_item
UI_checkbox(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);
void clicked();
void set_state(bool state);
bool state() const;