1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-14 15:33:34 -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
+1 -2
View File
@@ -123,7 +123,7 @@ void SimplePTTGUI::onWidgetRolled(QWidget* widget, bool rollDown)
}
SimplePTTGUI::SimplePTTGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feature, QWidget* parent) :
RollupWidget(parent),
FeatureGUI(parent),
ui(new Ui::SimplePTTGUI),
m_pluginAPI(pluginAPI),
m_featureUISet(featureUISet),
@@ -160,7 +160,6 @@ SimplePTTGUI::SimplePTTGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Fea
SimplePTTGUI::~SimplePTTGUI()
{
m_featureUISet->removeFeatureInstance(this);
delete m_simplePTT; // When the GUI closes it has to delete the demodulator because it can be done with (x)
delete ui;
}