From 2dd517fd7717e1702ac75c67987ea2d4aebd13d5 Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Thu, 6 Mar 2025 18:15:23 +0100 Subject: [PATCH] lint --- client/simulator_base.cpp | 5 ++--- src/UI/UI_checkbox.hpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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;