1
0
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:
edouard 2011-01-31 21:50:11 +00:00 committed by edouard
parent 6ef4dec59f
commit 0a87ed23c7
7 changed files with 752 additions and 741 deletions

View File

@ -38,6 +38,7 @@ DialGadget::DialGadget(QString classId, DialGadgetWidget *widget, QWidget *paren
DialGadget::~DialGadget()
{
delete m_widget;
}
/*

View File

@ -37,6 +37,7 @@ LineardialGadget::LineardialGadget(QString classId, LineardialGadgetWidget *widg
LineardialGadget::~LineardialGadget()
{
delete m_widget;
}
/*

View File

@ -37,6 +37,7 @@ PFDGadget::PFDGadget(QString classId, PFDGadgetWidget *widget, QWidget *parent)
PFDGadget::~PFDGadget()
{
delete m_widget;
}
/*

View File

@ -37,6 +37,7 @@ SystemHealthGadget::SystemHealthGadget(QString classId, SystemHealthGadgetWidget
SystemHealthGadget::~SystemHealthGadget()
{
delete m_widget;
}
/*

View File

@ -36,7 +36,7 @@ UAVObjectBrowser::UAVObjectBrowser(QString classId, UAVObjectBrowserWidget *widg
UAVObjectBrowser::~UAVObjectBrowser()
{
delete m_widget;
}
void UAVObjectBrowser::loadConfiguration(IUAVGadgetConfiguration* config)

View File

@ -36,7 +36,7 @@ UploaderGadget::UploaderGadget(QString classId, UploaderGadgetWidget *widget, Q
UploaderGadget::~UploaderGadget()
{
delete m_widget;
}
/**
* Loads a configuration.

View File

@ -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;
}
}