1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

Feature plugins: use specialized FeatureGUI superclass. Handle GUI lifecycle in DeviceUISet

This commit is contained in:
f4exb
2020-10-03 23:55:24 +02:00
parent 1a9f67b55c
commit 4ab683fa7d
15 changed files with 128 additions and 29 deletions
@@ -116,7 +116,7 @@ void RigCtlServerGUI::onWidgetRolled(QWidget* widget, bool rollDown)
}
RigCtlServerGUI::RigCtlServerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feature, QWidget* parent) :
RollupWidget(parent),
FeatureGUI(parent),
ui(new Ui::RigCtlServerGUI),
m_pluginAPI(pluginAPI),
m_featureUISet(featureUISet),
@@ -145,7 +145,6 @@ RigCtlServerGUI::RigCtlServerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISe
RigCtlServerGUI::~RigCtlServerGUI()
{
m_featureUISet->removeFeatureInstance(this);
delete m_rigCtlServer; // When the GUI closes it has to delete the demodulator because it can be done with (x)
delete ui;
}