mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-04 10:38:45 -04:00
SoapySDR support: fixed createTunableElementsControl
This commit is contained in:
parent
1168c18e3a
commit
e1ac6c2caa
@ -159,7 +159,7 @@ void SoapySDROutputGui::createAntennasControl(const std::vector<std::string>& an
|
||||
}
|
||||
|
||||
m_antennas = new StringRangeGUI(this);
|
||||
m_antennas->setLabel(QString("Antenna"));
|
||||
m_antennas->setLabel(QString("RF out"));
|
||||
m_antennas->setUnits(QString("Port"));
|
||||
|
||||
for (const auto &it : antennaList) {
|
||||
@ -182,6 +182,10 @@ void SoapySDROutputGui::createTunableElementsControl(const std::vector<DeviceSoa
|
||||
|
||||
for (int i = 0; it != tunableElementsList.end(); ++it, i++)
|
||||
{
|
||||
if (it->m_ranges.size() == 0) { // skip empty ranges lists
|
||||
continue;
|
||||
}
|
||||
|
||||
ItemSettingGUI *rangeGUI;
|
||||
createRangesControl(
|
||||
&rangeGUI,
|
||||
|
@ -160,7 +160,7 @@ void SoapySDRInputGui::createAntennasControl(const std::vector<std::string>& ant
|
||||
}
|
||||
|
||||
m_antennas = new StringRangeGUI(this);
|
||||
m_antennas->setLabel(QString("Antenna"));
|
||||
m_antennas->setLabel(QString("RF in"));
|
||||
m_antennas->setUnits(QString("Port"));
|
||||
|
||||
for (const auto &it : antennaList) {
|
||||
@ -183,6 +183,10 @@ void SoapySDRInputGui::createTunableElementsControl(const std::vector<DeviceSoap
|
||||
|
||||
for (int i = 0; it != tunableElementsList.end(); ++it, i++)
|
||||
{
|
||||
if (it->m_ranges.size() == 0) { // skip empty ranges lists
|
||||
continue;
|
||||
}
|
||||
|
||||
ItemSettingGUI *rangeGUI;
|
||||
createRangesControl(
|
||||
&rangeGUI,
|
||||
|
Loading…
Reference in New Issue
Block a user