Add setMin and setMax to choice to update its limits

This commit is contained in:
Bertrand Songis
2020-04-21 09:37:45 +02:00
parent 8b4cf2baa2
commit 588c326cfc
+12
View File
@@ -93,6 +93,18 @@ class Choice : public ChoiceBase {
menuTitle = std::move(value);
}
void setMin(int16_t value)
{
vmin = value;
invalidate();
}
void setMax(int16_t value)
{
vmax = value;
invalidate();
}
protected:
std::vector<std::string> values;
int16_t vmin = 0;