From c3cb642947c42de48a64e79b15af77ff900d2491 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 14 Oct 2017 19:42:48 +0200 Subject: Added latency filter UI controls. --- plugingui/humanizerframecontent.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugingui/humanizerframecontent.h') 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()); -- cgit v1.2.3