From: chrysn Date: Thu, 29 Nov 2018 12:36:27 +0000 (+0100) Subject: views: Increase precision on analog views X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=58cd5b584f5bcb19d7c9bd28391c53dd2488fc59;p=pulseview.git views: Increase precision on analog views Closes #1335. --- diff --git a/pv/views/trace/analogsignal.cpp b/pv/views/trace/analogsignal.cpp index cd680085..d9b72add 100644 --- 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_);