Move to Qt

Everything seems to be working
Only timer is not moved over
This commit is contained in:
2024-09-12 16:59:54 +02:00
parent fc181726b9
commit 9eef1fc3ff
39 changed files with 399 additions and 501 deletions
+4 -3
View File
@@ -6,9 +6,10 @@
// TODO: Add color scale
class UI_thermo : public UI_item
{
Q_OBJECT
public:
UI_thermo(std::string id, std::string text, Color fg_color, Color bg_color, double min, double max, double value);
UI_thermo(const json &j);
UI_thermo(std::string id, std::string text, Color fg_color, Color bg_color, double min, double max, double value, QObject* parrent = nullptr);
UI_thermo(const json &j, QObject* parrent = nullptr);
void set_value(double value) override;
double value() const;
@@ -31,4 +32,4 @@ class UI_thermo : public UI_item
double m_max;
double m_value;
std::unordered_map<double, Color> m_color_map;
};
};