Add default constructor

This commit is contained in:
2026-02-14 14:30:49 +01:00
parent c1b04048e7
commit e4702a8b0b
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -1,5 +1,9 @@
#include "UI_led.hpp" #include "UI_led.hpp"
UI_led::UI_led(QObject *parent) : UI_item(UI_LED_TYPE, "", 12, Color::Default, Color::Default, parent)
{
}
UI_led::UI_led(std::string text, Color fg_color, Color bg_color, QObject *parent) UI_led::UI_led(std::string text, Color fg_color, Color bg_color, QObject *parent)
: UI_item(UI_LED_TYPE, text, 12, fg_color, bg_color, parent) : UI_item(UI_LED_TYPE, text, 12, fg_color, bg_color, parent)
{ {
+1
View File
@@ -8,6 +8,7 @@ class UI_led : public UI_item
{ {
Q_OBJECT Q_OBJECT
public: public:
UI_led(QObject *parent = nullptr);
UI_led(std::string text, Color fg_color, Color bg_color, QObject *parent = nullptr); UI_led(std::string text, Color fg_color, Color bg_color, QObject *parent = nullptr);
UI_led(const json &j, QObject *parent = nullptr); UI_led(const json &j, QObject *parent = nullptr);