rename some signals
add some constructors that have no color
This commit is contained in:
2026-02-14 14:30:57 +01:00
parent 371a465cf2
commit b0c1eca1d1
16 changed files with 52 additions and 8 deletions
+10
View File
@@ -7,12 +7,22 @@ UI_slider::UI_slider(std::string text, std::string unit, Color fg_color, Color b
{
}
UI_slider::UI_slider(std::string text, std::string unit, double min, double max, double value, QObject *parent)
: UI_slider(text, unit, Color::Default, Color::Default, min, max, value, parent)
{
}
UI_slider::UI_slider(std::string text, Color fg_color, Color bg_color, double min, double max, double value,
QObject *parent)
: UI_slider(text, "", fg_color, bg_color, min, max, value, parent)
{
}
UI_slider::UI_slider(std::string text, double min, double max, double value, QObject *parent)
: UI_slider(text, "", Color::Default, Color::Default, min, max, value, parent)
{
}
UI_slider::UI_slider(const json &j, QObject *parent) : UI_item(UI_SLIDER_TYPE, parent)
{
from_json(j);