diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-10-14 19:42:48 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-02-18 11:43:42 +0100 |
commit | c3cb642947c42de48a64e79b15af77ff900d2491 (patch) | |
tree | 794782bf243bafa26a6ae103a9e9ede8c2c76d21 /plugingui/humanizerframecontent.h | |
parent | 6a90e6c24f05c57cdbe19e5cc44c77c9e5810148 (diff) |
Added latency filter UI controls.
Diffstat (limited to 'plugingui/humanizerframecontent.h')
-rw-r--r-- | plugingui/humanizerframecontent.h | 5 |
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()); |