1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00

Removed useless reference to device source and sink APIs in the sampling device control widget

This commit is contained in:
f4exb 2017-11-01 18:45:03 +01:00
parent 7370eba0f7
commit aea8de22a1
3 changed files with 1 additions and 9 deletions

View File

@ -23,9 +23,7 @@
SamplingDeviceControl::SamplingDeviceControl(QWidget* parent) :
QWidget(parent),
ui(new Ui::SamplingDeviceControl),
m_pluginManager(0),
m_deviceSourceAPI(0),
m_deviceSinkAPI(0)
m_pluginManager(0)
{
ui->setupUi(this);
}

View File

@ -41,8 +41,6 @@ public:
~SamplingDeviceControl();
void setPluginManager(PluginManager *pluginManager) { m_pluginManager = pluginManager; }
void setDeviceAPI(DeviceSourceAPI *deviceAPI) { m_deviceSourceAPI = deviceAPI; }
void setDeviceAPI(DeviceSinkAPI *deviceAPI) { m_deviceSinkAPI = deviceAPI; }
QComboBox *getDeviceSelector();
QPushButton *getDeviceSelectionConfirm();
QComboBox *getChannelSelector();
@ -51,8 +49,6 @@ public:
private:
Ui::SamplingDeviceControl* ui;
PluginManager *m_pluginManager;
DeviceSourceAPI *m_deviceSourceAPI;
DeviceSinkAPI *m_deviceSinkAPI;
};

View File

@ -214,7 +214,6 @@ void MainWindow::addSourceDevice()
DeviceSourceAPI *deviceSourceAPI = new DeviceSourceAPI(deviceTabIndex, dspDeviceSourceEngine);
m_deviceUIs.back()->m_deviceSourceAPI = deviceSourceAPI;
m_deviceUIs.back()->m_samplingDeviceControl->setDeviceAPI(deviceSourceAPI);
m_deviceUIs.back()->m_samplingDeviceControl->setPluginManager(m_pluginManager);
QList<QString> channelNames;
m_pluginManager->listRxChannels(channelNames);
@ -280,7 +279,6 @@ void MainWindow::addSinkDevice()
m_deviceUIs.back()->m_deviceSourceAPI = 0;
m_deviceUIs.back()->m_deviceSinkAPI = deviceSinkAPI;
m_deviceUIs.back()->m_samplingDeviceControl->setDeviceAPI(deviceSinkAPI);
m_deviceUIs.back()->m_samplingDeviceControl->setPluginManager(m_pluginManager);
QList<QString> channelNames;
m_pluginManager->listTxChannels(channelNames);