1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-12 18:58:48 -04:00

Channel plugins: use specialized ChannelGUI superclass. Handle GUI lifecycle in MainWindow

This commit is contained in:
f4exb
2020-10-04 06:16:15 +02:00
parent 4ab683fa7d
commit b1c9a35dcb
116 changed files with 314 additions and 210 deletions
@@ -283,7 +283,7 @@ void FreqTrackerGUI::onMenuDialogCalled(const QPoint &p)
}
FreqTrackerGUI::FreqTrackerGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget* parent) :
RollupWidget(parent),
ChannelGUI(parent),
ui(new Ui::FreqTrackerGUI),
m_pluginAPI(pluginAPI),
m_deviceUISet(deviceUISet),
@@ -332,7 +332,6 @@ FreqTrackerGUI::FreqTrackerGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, B
FreqTrackerGUI::~FreqTrackerGUI()
{
m_deviceUISet->removeRxChannelInstance(this);
delete m_freqTracker; // TODO: check this: when the GUI closes it has to delete the demodulator
delete ui;
}