projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8962d7b
)
views: Increase precision on analog views
author
chrysn
<chrysn@fsfe.org>
Thu, 29 Nov 2018 12:36:27 +0000
(13:36 +0100)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Sat, 9 Mar 2019 14:40:02 +0000
(15:40 +0100)
Closes #1335.
pv/views/trace/analogsignal.cpp
patch
|
blob
|
history
diff --git
a/pv/views/trace/analogsignal.cpp
b/pv/views/trace/analogsignal.cpp
index cd680085312b07d5249fecca2f51b0c32cdb39de..d9b72addb6a512fea60ed9311b17babffecb6c6a 100644
(file)
--- a/
pv/views/trace/analogsignal.cpp
+++ b/
pv/views/trace/analogsignal.cpp
@@
-297,7
+297,7
@@
void AnalogSignal::paint_fore(QPainter &p, ViewItemPaintParams &pp)
// and we have corresponding data available
if (show_hover_marker_ && !std::isnan(value_at_hover_pos_)) {
infotext = QString("[%1] %2 V/div")
- .arg(format_value_si(value_at_hover_pos_, SIPrefix::unspecified,
0
, "V", false))
+ .arg(format_value_si(value_at_hover_pos_, SIPrefix::unspecified,
2
, "V", false))
.arg(resolution_);
} else
infotext = QString("%1 V/div").arg(resolution_);