kopia lustrzana https://github.com/f4exb/sdrangel
SDRdaemon plugin: display stream rate with two decimals in UI
rodzic
153b1c017c
commit
591ffd2f0e
|
@ -303,7 +303,7 @@ void SDRdaemonGui::updateWithAcquisition()
|
|||
void SDRdaemonGui::updateWithStreamData()
|
||||
{
|
||||
ui->centerFrequency->setValue(m_centerFrequency / 1000);
|
||||
QString s0 = QString::number(m_sampleRateStream/1000.0, 'f', 0);
|
||||
QString s0 = QString::number(m_sampleRateStream/1000.0, 'f', 2);
|
||||
ui->sampleRateStreamText->setText(tr("%1").arg(s0));
|
||||
QString s1 = QString::number(m_sampleRate/1000.0, 'f', 3);
|
||||
ui->sampleRateText->setText(tr("%1").arg(s1));
|
||||
|
|
|
@ -215,7 +215,7 @@
|
|||
<widget class="QLabel" name="sampleRateStreamText">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>50</width>
|
||||
<width>70</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
|
@ -223,7 +223,7 @@
|
|||
<string>Nominal sample rate from stream data (kS/s)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>00000</string>
|
||||
<string>0000.00</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
|
|
Ładowanie…
Reference in New Issue