projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f1f59c
)
util: Added a space between the value and prefix
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Tue, 30 Dec 2014 11:43:00 +0000
(11:43 +0000)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Tue, 30 Dec 2014 14:24:08 +0000
(14:24 +0000)
pv/util.cpp
patch
|
blob
|
history
diff --git
a/pv/util.cpp
b/pv/util.cpp
index ff1b484899a19507c882079014dc917062c7ccf1..2e54adeaed3dffae88cb2b7354ce9eb57395302b 100644
(file)
--- a/
pv/util.cpp
+++ b/
pv/util.cpp
@@
-61,8
+61,8
@@
QString format_si_value(double v, QString unit, int prefix,
QTextStream ts(&s);
if (sign)
ts << forcesign;
- ts << fixed << qSetRealNumberPrecision(precision)
-
<< (v * multiplier)
<< SIPrefixes[prefix] << unit;
+ ts << fixed << qSetRealNumberPrecision(precision)
<<
+
(v * multiplier) << " "
<< SIPrefixes[prefix] << unit;
return s;
}