]> sigrok.org Git - pulseview.git/commitdiff
Display cursor popup time value correctly.
authorJoel Holdsworth <redacted>
Sun, 29 Dec 2013 10:49:30 +0000 (11:49 +0100)
committerJoel Holdsworth <redacted>
Sun, 29 Dec 2013 10:49:30 +0000 (11:49 +0100)
This fixes Bug #229

pv/view/timemarker.cpp

index 5935fb3b9fd2535b6e1d15dbabe0f0ca85086b92..2dabaa0eb24346add1889975a687e639350b649a 100644 (file)
@@ -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)));