summaryrefslogtreecommitdiff
path: root/plugingui/humanizerframecontent.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/humanizerframecontent.h')
-rw-r--r--plugingui/humanizerframecontent.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/humanizerframecontent.h b/plugingui/humanizerframecontent.h
index 61ba73b..a9e0750 100644
--- a/plugingui/humanizerframecontent.h
+++ b/plugingui/humanizerframecontent.h
@@ -69,6 +69,9 @@ public:
layout.addItem(&value);
}
+ float offset{0.0f};
+ float scale{1.0f};
+
private:
VBoxLayout layout{this};
Label caption{this};
@@ -76,6 +79,8 @@ private:
void setValue(float new_value)
{
+ new_value *= scale;
+ new_value += offset;
std::stringstream stream;
stream << std::fixed << std::setprecision(2) << new_value;
value.setText(stream.str());