mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
UI
Add units to the dial, slider and thermo
This commit is contained in:
@@ -8,6 +8,8 @@ class UI_thermo : public UI_item
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
UI_thermo(std::string text, std::string unit, Color fg_color, Color bg_color, double min, double max, double value,
|
||||
QObject *parrent = nullptr);
|
||||
UI_thermo(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);
|
||||
@@ -32,5 +34,6 @@ class UI_thermo : public UI_item
|
||||
double m_min;
|
||||
double m_max;
|
||||
double m_value;
|
||||
std::string m_unit;
|
||||
std::unordered_map<double, Color> m_color_map;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user