mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
Move to Qt
Everything seems to be working Only timer is not moved over
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user