mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
lint
This commit is contained in:
@@ -571,9 +571,8 @@ void Simulator_base::setup_checkbox(QWidget *item, size_t index)
|
|||||||
if (checkbox == nullptr)
|
if (checkbox == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
connect(checkbox, &QCheckBox::clicked, this, [=, this] {
|
connect(checkbox, &QCheckBox::clicked, this,
|
||||||
m_web_socket->send_event(Web_socket_wrapper::Event::clicked, index);
|
[=, this] { m_web_socket->send_event(Web_socket_wrapper::Event::clicked, index); });
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Simulator_base::setup_dial(QWidget *item, size_t index)
|
void Simulator_base::setup_dial(QWidget *item, size_t index)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class UI_checkbox : public UI_item
|
|||||||
UI_checkbox(QObject *parent = nullptr);
|
UI_checkbox(QObject *parent = nullptr);
|
||||||
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 clicked();
|
||||||
void set_state(bool state);
|
void set_state(bool state);
|
||||||
bool state() const;
|
bool state() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user