Commit d7674e45 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

KitInformation: Delete subwidgets in destructor



Change-Id: I7e0a6d457aa26748758b6402955c81eae2c94782
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 38ab088c
......@@ -134,6 +134,12 @@ AndroidGdbServerKitInformationWidget::AndroidGdbServerKitInformationWidget(Kit *
refresh();
}
AndroidGdbServerKitInformationWidget::~AndroidGdbServerKitInformationWidget()
{
delete m_button;
delete m_label;
}
QString AndroidGdbServerKitInformationWidget::displayName() const
{
return tr("Android GDB server");
......
......@@ -47,6 +47,7 @@ class AndroidGdbServerKitInformationWidget : public ProjectExplorer::KitConfigWi
public:
AndroidGdbServerKitInformationWidget(ProjectExplorer::Kit *kit,
const ProjectExplorer::KitInformation *ki);
~AndroidGdbServerKitInformationWidget();
QString displayName() const;
QString toolTip() const;
......
......@@ -1024,6 +1024,12 @@ DebuggerKitConfigWidget::DebuggerKitConfigWidget(Kit *workingCopy, const KitInfo
this, SLOT(onDebuggerRemoved(QVariant)));
}
DebuggerKitConfigWidget::~DebuggerKitConfigWidget()
{
delete m_comboBox;
delete m_manageButton;
}
QString DebuggerKitConfigWidget::toolTip() const
{
return tr("The debugger to use for this kit.");
......
......@@ -129,6 +129,7 @@ class DebuggerKitConfigWidget : public ProjectExplorer::KitConfigWidget
public:
DebuggerKitConfigWidget(ProjectExplorer::Kit *workingCopy,
const ProjectExplorer::KitInformation *ki);
~DebuggerKitConfigWidget();
QString displayName() const;
QString toolTip() const;
......
......@@ -48,6 +48,11 @@ QmakeKitConfigWidget::QmakeKitConfigWidget(ProjectExplorer::Kit *k, const Projec
connect(m_lineEdit, SIGNAL(textEdited(QString)), this, SLOT(mkspecWasChanged(QString)));
}
QmakeKitConfigWidget::~QmakeKitConfigWidget()
{
delete m_lineEdit;
}
QWidget *QmakeKitConfigWidget::mainWidget() const
{
return m_lineEdit;
......
......@@ -45,6 +45,7 @@ class QmakeKitConfigWidget : public ProjectExplorer::KitConfigWidget
public:
QmakeKitConfigWidget(ProjectExplorer::Kit *k, const ProjectExplorer::KitInformation *ki);
~QmakeKitConfigWidget();
QWidget *mainWidget() const;
QString displayName() const;
......
......@@ -68,6 +68,12 @@ QtKitConfigWidget::QtKitConfigWidget(ProjectExplorer::Kit *k, const ProjectExplo
connect(m_manageButton, SIGNAL(clicked()), this, SLOT(manageQtVersions()));
}
QtKitConfigWidget::~QtKitConfigWidget()
{
delete m_combo;
delete m_manageButton;
}
QString QtKitConfigWidget::displayName() const
{
return tr("Qt version:");
......
......@@ -46,6 +46,7 @@ class QtKitConfigWidget : public ProjectExplorer::KitConfigWidget
public:
QtKitConfigWidget(ProjectExplorer::Kit *k, const ProjectExplorer::KitInformation *ki);
~QtKitConfigWidget();
QString displayName() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment