From: Joel Holdsworth Date: Sun, 29 Dec 2013 10:49:30 +0000 (+0100) Subject: Display cursor popup time value correctly. X-Git-Tag: pulseview-0.2.0~175 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=54c9f681a95aec6e746b9e5e567a2220ee8322b7;p=pulseview.git Display cursor popup time value correctly. This fixes Bug #229 --- diff --git a/pv/view/timemarker.cpp b/pv/view/timemarker.cpp index 5935fb3b..2dabaa0e 100644 --- a/pv/view/timemarker.cpp +++ b/pv/view/timemarker.cpp @@ -81,10 +81,10 @@ pv::widgets::Popup* TimeMarker::create_popup(QWidget *parent) popup->setLayout(form); _value_widget = new QDoubleSpinBox(parent); - _value_widget->setValue(_time); - _value_widget->setDecimals(6); + _value_widget->setDecimals(9); _value_widget->setSuffix("s"); _value_widget->setSingleStep(1e-6); + _value_widget->setValue(_time); connect(_value_widget, SIGNAL(valueChanged(double)), this, SLOT(on_value_changed(double)));