mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-04 10:38:45 -04:00
LimeSDR output: added dB units on attenuation value display
This commit is contained in:
parent
10b8f786b1
commit
37300fb5ae
@ -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);
|
||||
|
||||
|
@ -651,7 +651,7 @@
|
||||
<widget class="QLabel" name="attText">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<width>60</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
@ -659,7 +659,7 @@
|
||||
<string>Gain value (dB)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>-89.75</string>
|
||||
<string>-89.75 dB</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
|
Loading…
Reference in New Issue
Block a user