mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -05:00
Normalize device name displays
This commit is contained in:
parent
df2077caa7
commit
6d3f975124
@ -92,7 +92,7 @@ PluginInterface::SampleSourceDevices AirspyPlugin::enumSampleSources()
|
||||
|
||||
QString serial_str = QString::number(serial_msb, 16) + QString::number(serial_lsb, 16);
|
||||
uint64_t serial_num = (((uint64_t) serial_msb)<<32) + serial_lsb;
|
||||
QString displayedName(QString("Airspy #%1 0x%2").arg(i).arg(serial_str));
|
||||
QString displayedName(QString("Airspy[%1] %2").arg(i).arg(serial_str));
|
||||
|
||||
result.append(SampleSourceDevice(displayedName,
|
||||
m_deviceTypeID,
|
||||
|
@ -57,7 +57,7 @@ PluginInterface::SampleSourceDevices BlderfPlugin::enumSampleSources()
|
||||
|
||||
for(int i = 0; i < count; i++)
|
||||
{
|
||||
QString displayedName(QString("BladeRF #%1 %2 (%3,%4)").arg(devinfo[i].instance).arg(devinfo[i].serial).arg(devinfo[i].usb_bus).arg(devinfo[i].usb_addr));
|
||||
QString displayedName(QString("BladeRF[%1] %2").arg(devinfo[i].instance).arg(devinfo[i].serial));
|
||||
|
||||
result.append(SampleSourceDevice(displayedName,
|
||||
"org.osmocom.sdr.samplesource.bladerf",
|
||||
|
@ -60,11 +60,11 @@ PluginInterface::SampleSourceDevices FCDProPlugin::enumSampleSources()
|
||||
while (device_info != 0)
|
||||
{
|
||||
QString serialNumber = QString::fromWCharArray(device_info->serial_number);
|
||||
QString displayedName(QString("%1 #%2 %3").arg(fcd_traits<Pro>::displayedName).arg(i).arg(serialNumber));
|
||||
QString displayedName(QString("%1[%2] %3").arg(fcd_traits<Pro>::displayedName).arg(i).arg(serialNumber));
|
||||
|
||||
result.append(SampleSourceDevice(displayedName,
|
||||
fcd_traits<Pro>::interfaceIID,
|
||||
QString::null,
|
||||
serialNumber,
|
||||
i));
|
||||
|
||||
device_info = device_info->next;
|
||||
|
@ -60,11 +60,11 @@ PluginInterface::SampleSourceDevices FCDProPlusPlugin::enumSampleSources()
|
||||
while (device_info != 0)
|
||||
{
|
||||
QString serialNumber = QString::fromWCharArray(device_info->serial_number);
|
||||
QString displayedName(QString("%1 #%2 %3").arg(fcd_traits<ProPlus>::displayedName).arg(i).arg(serialNumber));
|
||||
QString displayedName(QString("%1[%2] %3").arg(fcd_traits<ProPlus>::displayedName).arg(i).arg(serialNumber));
|
||||
|
||||
result.append(SampleSourceDevice(displayedName,
|
||||
fcd_traits<ProPlus>::interfaceIID,
|
||||
QString::null,
|
||||
serialNumber,
|
||||
i));
|
||||
|
||||
device_info = device_info->next;
|
||||
|
@ -56,7 +56,7 @@ PluginInterface::SampleSourceDevices FileSourcePlugin::enumSampleSources()
|
||||
|
||||
for(int i = 0; i < count; i++)
|
||||
{
|
||||
QString displayedName(QString("FileSource #%1 choose file").arg(i));
|
||||
QString displayedName(QString("FileSource[%1]").arg(i));
|
||||
|
||||
result.append(SampleSourceDevice(displayedName,
|
||||
m_deviceTypeID,
|
||||
|
@ -93,7 +93,7 @@ PluginInterface::SampleSourceDevices HackRFPlugin::enumSampleSources()
|
||||
|
||||
QString serial_str = QString::number(serial_msb, 16) + QString::number(serial_lsb, 16);
|
||||
uint64_t serial_num = (((uint64_t) serial_msb)<<32) + serial_lsb;
|
||||
QString displayedName(QString("HackRF #%1 0x%2").arg(i).arg(serial_str));
|
||||
QString displayedName(QString("HackRF[%1] %2").arg(i).arg(serial_str));
|
||||
|
||||
result.append(SampleSourceDevice(displayedName, m_deviceTypeID,
|
||||
serial_str,
|
||||
|
@ -14,7 +14,7 @@ RTLSDRGui::RTLSDRGui(PluginAPI* pluginAPI, QWidget* parent) :
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::ReverseGold));
|
||||
ui->centerFrequency->setValueRange(7, 28500U, 1700000U);
|
||||
ui->centerFrequency->setValueRange(7, 24000U, 1900000U);
|
||||
connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware()));
|
||||
displaySettings();
|
||||
|
||||
|
@ -49,7 +49,7 @@ PluginInterface::SampleSourceDevices RTLSDRPlugin::enumSampleSources()
|
||||
|
||||
if(rtlsdr_get_device_usb_strings((uint32_t)i, vendor, product, serial) != 0)
|
||||
continue;
|
||||
QString displayedName(QString("RTL-SDR #%1 %2").arg(i).arg(serial));
|
||||
QString displayedName(QString("RTL-SDR[%1] %2").arg(i).arg(serial));
|
||||
|
||||
result.append(SampleSourceDevice(displayedName,
|
||||
m_deviceTypeID,
|
||||
|
Loading…
Reference in New Issue
Block a user