diff --git a/client/simulator_base.cpp b/client/simulator_base.cpp index 1794d71..2649861 100644 --- a/client/simulator_base.cpp +++ b/client/simulator_base.cpp @@ -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) diff --git a/src/UI/UI_checkbox.hpp b/src/UI/UI_checkbox.hpp index b009f04..8ad0bd6 100644 --- a/src/UI/UI_checkbox.hpp +++ b/src/UI/UI_checkbox.hpp @@ -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;