projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various minor whitespace and consistency fixes.
[pulseview.git]
/
pv
/
widgets
/
timestampspinbox.cpp
diff --git
a/pv/widgets/timestampspinbox.cpp
b/pv/widgets/timestampspinbox.cpp
index 703da6ea13cb51aaf2f9581c4cbbbbea7cc19def..463a846277d814bcebed936335e18d73a6314f55 100644
(file)
--- a/
pv/widgets/timestampspinbox.cpp
+++ b/
pv/widgets/timestampspinbox.cpp
@@
-104,8
+104,7
@@
void TimestampSpinBox::on_editingFinished()
captures.removeFirst(); // remove entire match
QString str = captures.join("");
setValue(pv::util::Timestamp(str.toStdString()));
captures.removeFirst(); // remove entire match
QString str = captures.join("");
setValue(pv::util::Timestamp(str.toStdString()));
- }
- else {
+ } else {
// replace the malformed entered string with the old value
updateEdit();
}
// replace the malformed entered string with the old value
updateEdit();
}
@@
-113,8
+112,8
@@
void TimestampSpinBox::on_editingFinished()
void TimestampSpinBox::updateEdit()
{
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);
}
lineEdit()->setText(newtext);
}