From 37300fb5ae97dea933c820e3f27fddc4e917ff34 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 20 Sep 2017 00:47:34 +0200 Subject: [PATCH] LimeSDR output: added dB units on attenuation value display --- plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp | 4 ++-- plugins/samplesink/plutosdroutput/plutosdroutputgui.ui | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp b/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp index 80d1db9dd..baab3e4b4 100644 --- a/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp +++ b/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp @@ -210,7 +210,7 @@ void PlutoSDROutputGUI::on_lpFIRGain_currentIndexChanged(int index) void PlutoSDROutputGUI::on_att_valueChanged(int value) { - ui->attText->setText(QString("%1").arg(QString::number(value*0.25, 'f', 2))); + ui->attText->setText(QString("%1 dB").arg(QString::number(value*0.25, 'f', 2))); m_settings.m_att = value; sendSettings(); } @@ -241,7 +241,7 @@ void PlutoSDROutputGUI::displaySettings() ui->lpFIRGain->setEnabled(m_settings.m_lpfFIREnable); ui->att->setValue(m_settings.m_att); - ui->attText->setText(QString("%1").arg(QString::number(m_settings.m_att*0.25, 'f', 2))); + ui->attText->setText(QString("%1 dB").arg(QString::number(m_settings.m_att*0.25, 'f', 2))); ui->antenna->setCurrentIndex((int) m_settings.m_antennaPath); diff --git a/plugins/samplesink/plutosdroutput/plutosdroutputgui.ui b/plugins/samplesink/plutosdroutput/plutosdroutputgui.ui index 3a053c35d..60a2fc7e1 100644 --- a/plugins/samplesink/plutosdroutput/plutosdroutputgui.ui +++ b/plugins/samplesink/plutosdroutput/plutosdroutputgui.ui @@ -651,7 +651,7 @@ - 40 + 60 0 @@ -659,7 +659,7 @@ Gain value (dB) - -89.75 + -89.75 dB Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter