Commit 1d31955a authored by hjk's avatar hjk
Browse files

ProjectExplorer: Remove IRunConfigurationAspect::addToMain*Widget base



Not needed in the current use cases. The original plan was to
use a loop in the *RunConfigurationWidgets constructors, making
them less dependent on the actual RunConfiguration they serve
(and potentially have a one or few generic RunConfigurationWidget).

Change-Id: I2209213414248a1e13b50447f05e8f189620a6f1
Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
parent 89f37e30
......@@ -122,8 +122,7 @@ public:
virtual IRunConfigurationAspect *create(RunConfiguration *runConfig) const = 0;
virtual IRunConfigurationAspect *clone(RunConfiguration *runConfig) const;
virtual RunConfigWidget *createConfigurationWidget(); // Either this...
virtual void addToMainConfigurationWidget(QWidget* /*parent*/, QFormLayout* /*layout*/) {} // ... or this.
virtual RunConfigWidget *createConfigurationWidget();
void setId(Core::Id id) { m_id = id; }
void setDisplayName(const QString &displayName) { m_displayName = displayName; }
......
......@@ -57,7 +57,7 @@ public:
TerminalAspect *create(RunConfiguration *runConfig) const override;
TerminalAspect *clone(RunConfiguration *runConfig) const override;
void addToMainConfigurationWidget(QWidget *parent, QFormLayout *layout) override;
void addToMainConfigurationWidget(QWidget *parent, QFormLayout *layout);
bool useTerminal() const;
void setUseTerminal(bool useTerminal);
......@@ -90,7 +90,7 @@ public:
WorkingDirectoryAspect *create(RunConfiguration *runConfig) const override;
WorkingDirectoryAspect *clone(RunConfiguration *runConfig) const override;
void addToMainConfigurationWidget(QWidget *parent, QFormLayout *layout) override;
void addToMainConfigurationWidget(QWidget *parent, QFormLayout *layout);
QString workingDirectory() const;
QString unexpandedWorkingDirectory() const;
......@@ -116,7 +116,7 @@ public:
ArgumentsAspect *create(RunConfiguration *runConfig) const override;
ArgumentsAspect *clone(RunConfiguration *runConfig) const override;
void addToMainConfigurationWidget(QWidget *parent, QFormLayout *layout) override;
void addToMainConfigurationWidget(QWidget *parent, QFormLayout *layout);
QString arguments() const;
QString unexpandedArguments() const;
......@@ -145,7 +145,7 @@ public:
ExecutableAspect *create(RunConfiguration *runConfig) const override;
ExecutableAspect *clone(RunConfiguration *runConfig) const override;
void addToMainConfigurationWidget(QWidget *parent, QFormLayout *layout) override;
void addToMainConfigurationWidget(QWidget *parent, QFormLayout *layout);
QString executable() const;
QString unexpandedExecutable() 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