aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-03-12 15:27:50 -0700
committerChris Robinson <[email protected]>2017-03-12 15:27:50 -0700
commitd9e2a0cbf04e8e2feab6597a5fc5c74bd5026a34 (patch)
treefabbfe18e95fd5c1b3fd11581dde504a9eeae91c /utils
parent948ce36fa9a384d8139346228afa43f099c17000 (diff)
Use QString's arg method to format the float value
Diffstat (limited to 'utils')
-rw-r--r--utils/alsoft-config/mainwindow.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp
index e06c9e17..4510781e 100644
--- a/utils/alsoft-config/mainwindow.cpp
+++ b/utils/alsoft-config/mainwindow.cpp
@@ -1133,10 +1133,9 @@ void MainWindow::updateRefDelayEdit(int delay)
{
ui->decoderNFRefDelayEdit->clear();
if(delay > 0)
- {
- QString str = QString::asprintf("%0.03f", delay/1000.0);
- ui->decoderNFRefDelayEdit->insert(str);
- }
+ ui->decoderNFRefDelayEdit->insert(
+ QString("%1").arg(delay/1000.0, 0, 'f', 3)
+ );
enableApplyButton();
}