summaryrefslogtreecommitdiffhomepage
path: root/options/slider.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-05 20:32:23 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-05 20:32:23 +0200
commit4712b6760f15b024e0913db045553528504c29cd (patch)
tree6ccbbd3bfc50238b647ce5e49104fab11755bcd0 /options/slider.hpp
parent2c66c32e9185cdfac2d6e0b3b90a0834482aab31 (diff)
options/slider: adjust eps, simplify
Diffstat (limited to 'options/slider.hpp')
-rw-r--r--options/slider.hpp25
1 files changed, 3 insertions, 22 deletions
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