Adds unit property to dial.

Adds the ability to store and retrieve a unit string associated with the dial, allowing for more context-aware representation of values.
This commit is contained in:
2026-02-14 14:32:16 +01:00
parent 1bd7635085
commit f58028a8a9
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -53,6 +53,11 @@ double UI_dial::max() const
return m_max;
}
std::string UI_dial::unit() const
{
return m_unit;
}
void UI_dial::from_json(const json &j)
{
UI_item::from_json(j);