From 45aeb3f258f82f5e388b81a153eaeee19af50d34 Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Fri, 14 Mar 2025 08:53:57 +0100 Subject: [PATCH] UI fix checkbox error --- src/UI/UI_checkbox.cpp | 2 +- src/UI/UI_checkbox.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UI/UI_checkbox.cpp b/src/UI/UI_checkbox.cpp index 58bf40d..4bf06a4 100644 --- a/src/UI/UI_checkbox.cpp +++ b/src/UI/UI_checkbox.cpp @@ -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(); diff --git a/src/UI/UI_checkbox.hpp b/src/UI/UI_checkbox.hpp index 8ad0bd6..f18bdd1 100644 --- a/src/UI/UI_checkbox.hpp +++ b/src/UI/UI_checkbox.hpp @@ -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;