From 4712b6760f15b024e0913db045553528504c29cd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 5 Sep 2016 20:32:23 +0200 Subject: options/slider: adjust eps, simplify --- options/slider.hpp | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'options/slider.hpp') diff --git a/options/slider.hpp b/options/slider.hpp index 1d02f17f..de5937d2 100644 --- a/options/slider.hpp +++ b/options/slider.hpp @@ -41,28 +41,9 @@ namespace options QT_BEGIN_NAMESPACE -inline QDebug operator << (QDebug dbg, const options::slider_value& val) -{ - return dbg << val.cur(); -} - -inline QDataStream& operator << (QDataStream& out, const options::slider_value& v) -{ - out << float(v.cur()) - << float(v.min()) - << float(v.max()); - return out; -} - -inline QDataStream& operator >> (QDataStream& in, options::slider_value& v) -{ - float cur, min, max; - in >> cur; - in >> min; - in >> max; - v = options::slider_value(cur, min, max); - return in; -} +QDebug operator << (QDebug dbg, const options::slider_value& val); +QDataStream& operator << (QDataStream& out, const options::slider_value& v); +QDataStream& operator >> (QDataStream& in, options::slider_value& v); QT_END_NAMESPACE -- cgit v1.2.3