summaryrefslogtreecommitdiffhomepage
path: root/options
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-06-22 16:54:40 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-06-26 23:01:53 +0200
commitdcbddbb42acc86963bfe754e8be9f3e74a094b99 (patch)
tree955e255ce540a5036113a65751e32f14a20edda2 /options
parent545bed0348ca40730f19128171d787c80b9058f9 (diff)
options/slider: output something nice for QDebug
Diffstat (limited to 'options')
-rw-r--r--options/slider.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/options/slider.cpp b/options/slider.cpp
index 9ad06e24..d4f809c5 100644
--- a/options/slider.cpp
+++ b/options/slider.cpp
@@ -98,9 +98,10 @@ QDataStream& operator << (QDataStream& out, const options::slider_value& v)
return out;
}
-QDebug operator << (QDebug dbg, const options::slider_value& val)
+QDebug operator << (QDebug dbg, const options::slider_value& v)
{
- return dbg << val.cur();
+ return dbg << QStringLiteral("slider_value(cur=%1, min=%2, max=%3)")
+ .arg(v.cur()).arg(v.min()).arg(v.max()).toUtf8().data();
}
QDataStream& operator >> (QDataStream& in, options::slider_value& v)