mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-30 08:24:11 +01:00
OP-306 More updates to plugins to properly destroy the Widgets when the gadgets are removed.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2644 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
6ef4dec59f
commit
0a87ed23c7
@ -38,6 +38,7 @@ DialGadget::DialGadget(QString classId, DialGadgetWidget *widget, QWidget *paren
|
||||
|
||||
DialGadget::~DialGadget()
|
||||
{
|
||||
delete m_widget;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -37,6 +37,7 @@ LineardialGadget::LineardialGadget(QString classId, LineardialGadgetWidget *widg
|
||||
|
||||
LineardialGadget::~LineardialGadget()
|
||||
{
|
||||
delete m_widget;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -37,6 +37,7 @@ PFDGadget::PFDGadget(QString classId, PFDGadgetWidget *widget, QWidget *parent)
|
||||
|
||||
PFDGadget::~PFDGadget()
|
||||
{
|
||||
delete m_widget;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -37,6 +37,7 @@ SystemHealthGadget::SystemHealthGadget(QString classId, SystemHealthGadgetWidget
|
||||
|
||||
SystemHealthGadget::~SystemHealthGadget()
|
||||
{
|
||||
delete m_widget;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -36,7 +36,7 @@ UAVObjectBrowser::UAVObjectBrowser(QString classId, UAVObjectBrowserWidget *widg
|
||||
|
||||
UAVObjectBrowser::~UAVObjectBrowser()
|
||||
{
|
||||
|
||||
delete m_widget;
|
||||
}
|
||||
|
||||
void UAVObjectBrowser::loadConfiguration(IUAVGadgetConfiguration* config)
|
||||
|
@ -36,7 +36,7 @@ UploaderGadget::UploaderGadget(QString classId, UploaderGadgetWidget *widget, Q
|
||||
|
||||
UploaderGadget::~UploaderGadget()
|
||||
{
|
||||
|
||||
delete m_widget;
|
||||
}
|
||||
/**
|
||||
* Loads a configuration.
|
||||
|
@ -495,9 +495,16 @@ void UploaderGadgetWidget::clearLog()
|
||||
m_config->textBrowser->clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove all the device widgets...
|
||||
*/
|
||||
UploaderGadgetWidget::~UploaderGadgetWidget()
|
||||
{
|
||||
|
||||
while (m_config->systemElements->count()) {
|
||||
QWidget *qw = m_config->systemElements->widget(0);
|
||||
m_config->systemElements->removeTab(0);
|
||||
delete qw;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user