1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-18 06:11:46 -05:00

HackRF output: GUI updates

This commit is contained in:
f4exb 2017-04-02 04:04:05 +02:00
parent 5ba3dc89e8
commit c9f871f882
2 changed files with 54 additions and 54 deletions

View File

@ -158,7 +158,7 @@ void HackRFOutputGui::updateSampleRateAndFrequency()
{ {
m_deviceAPI->getSpectrum()->setSampleRate(m_sampleRate); m_deviceAPI->getSpectrum()->setSampleRate(m_sampleRate);
m_deviceAPI->getSpectrum()->setCenterFrequency(m_deviceCenterFrequency); m_deviceAPI->getSpectrum()->setCenterFrequency(m_deviceCenterFrequency);
ui->deviceRateText->setText(QString("%1k").arg(QString::number(m_sampleRate/1000.0, 'f', 0))); ui->deviceRateText->setText(QString("%1k").arg(QString::number(m_sampleRate/1000.0, 'g', 5)));
} }
void HackRFOutputGui::displaySettings() void HackRFOutputGui::displaySettings()

View File

@ -221,13 +221,6 @@
<property name="bottomMargin"> <property name="bottomMargin">
<number>2</number> <number>2</number>
</property> </property>
<item row="1" column="0">
<widget class="QLabel" name="label_interp">
<property name="text">
<string>Int</string>
</property>
</widget>
</item>
<item row="1" column="3"> <item row="1" column="3">
<widget class="QCheckBox" name="biasT"> <widget class="QCheckBox" name="biasT">
<property name="toolTip"> <property name="toolTip">
@ -267,50 +260,18 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="1" column="0">
<widget class="QLabel" name="bbFiltLabel">
<property name="text">
<string>BBF</string>
</property>
</widget>
</item>
<item row="1" column="1"> <item row="1" column="1">
<widget class="QComboBox" name="interp"> <widget class="QComboBox" name="bbFilter">
<property name="maximumSize">
<size>
<width>55</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip"> <property name="toolTip">
<string>Decimation factor</string> <string>RF bandpas filter</string>
</property> </property>
<property name="currentIndex">
<number>0</number>
</property>
<item>
<property name="text">
<string>1</string>
</property>
</item>
<item>
<property name="text">
<string>2</string>
</property>
</item>
<item>
<property name="text">
<string>4</string>
</property>
</item>
<item>
<property name="text">
<string>8</string>
</property>
</item>
<item>
<property name="text">
<string>16</string>
</property>
</item>
<item>
<property name="text">
<string>32</string>
</property>
</item>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -392,17 +353,56 @@
</spacer> </spacer>
</item> </item>
<item> <item>
<widget class="QLabel" name="bbFiltLabel"> <widget class="QLabel" name="label_interp">
<property name="text"> <property name="text">
<string>BBF</string> <string>Int</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QComboBox" name="bbFilter"> <widget class="QComboBox" name="interp">
<property name="toolTip"> <property name="maximumSize">
<string>RF bandpas filter</string> <size>
<width>55</width>
<height>16777215</height>
</size>
</property> </property>
<property name="toolTip">
<string>Decimation factor</string>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<item>
<property name="text">
<string>1</string>
</property>
</item>
<item>
<property name="text">
<string>2</string>
</property>
</item>
<item>
<property name="text">
<string>4</string>
</property>
</item>
<item>
<property name="text">
<string>8</string>
</property>
</item>
<item>
<property name="text">
<string>16</string>
</property>
</item>
<item>
<property name="text">
<string>32</string>
</property>
</item>
</widget> </widget>
</item> </item>
</layout> </layout>