Commit 455e5c87 authored by hjk's avatar hjk

runconfiguration.h/runsettingspropertiespage.*: code cosmetics

parent 87423acc
......@@ -43,18 +43,13 @@
#include <QtCore/QWeakPointer>
#include <QtGui/QWidget>
QT_BEGIN_NAMESPACE
class QString;
QT_END_NAMESPACE
namespace ProjectExplorer {
class Target;
class RunControl;
class BuildConfiguration;
class OutputFormatter;
class IRunConfigurationAspect;
class OutputFormatter;
class RunControl;
class Target;
/**
* Base class for a run configuration. A run configuration specifies how a
......
......@@ -485,7 +485,6 @@ void RunSettingsWidget::addSubWidget(RunConfigWidget *widget)
void RunSettingsWidget::removeSubWidgets()
{
// foreach does not like commas in types, it's only a macro after all
typedef QPair<RunConfigWidget *, QLabel *> RunConfigItem;
foreach (const RunConfigItem &item, m_subWidgets) {
delete item.first;
delete item.second;
......
......@@ -56,7 +56,7 @@ class RunConfigWidget;
namespace Internal {
const char * const RUNSETTINGS_PANEL_ID("ProjectExplorer.RunSettingsPanel");
const char * const RUNSETTINGS_PANEL_ID = "ProjectExplorer.RunSettingsPanel";
namespace Ui {
class RunSettingsPropertiesPage;
......@@ -93,7 +93,7 @@ class RunSettingsWidget : public QWidget
{
Q_OBJECT
public:
RunSettingsWidget(Target *target);
explicit RunSettingsWidget(Target *target);
~RunSettingsWidget();
private slots:
......@@ -132,7 +132,8 @@ private:
QMenu *m_addRunMenu;
QMenu *m_addDeployMenu;
bool m_ignoreChange;
QList<QPair<RunConfigWidget *, QLabel *> > m_subWidgets;
typedef QPair<RunConfigWidget *, QLabel *> RunConfigItem;
QList<RunConfigItem> m_subWidgets;
};
} // namespace Internal
......
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