Untangle the time formatting functions a bit
[pulseview.git] / pv / widgets / timestampspinbox.cpp
index 703da6ea13cb51aaf2f9581c4cbbbbea7cc19def..233ff6484f562b9d723a0bd74a9e587c82fc686d 100644 (file)
@@ -113,8 +113,8 @@ void TimestampSpinBox::on_editingFinished()
 
 void TimestampSpinBox::updateEdit()
 {
-       QString newtext = pv::util::format_si_value(
-               value_, "s", 8, precision_);
+       QString newtext = pv::util::format_time_si(
+               value_, pv::util::SIPrefix::none, precision_);
        lineEdit()->setText(newtext);
 }