diff options
author | hjk <hjk@qt.io> | 2018-10-22 17:56:04 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-10-23 14:12:39 +0000 |
commit | 0f5d5dbfe48f7abb9ca83ffa3dfaa6ed88db58b3 (patch) | |
tree | d48aa49fb61ccb74ae3479f0bf8326864d0f8c97 /src/plugins/projectexplorer/buildstep.h | |
parent | 8471ce4331ec06e7dc6060014e0d6c35e34a78bc (diff) |
ProjectExplorer: Make BuildStep::immutable use a data member
Default to false, remove all no-op reimplementations.
And rename the getter to isImmutable according to the rules.
Change-Id: I8cce79d88fb59badfa1cffcf30a46f7ff3b09e8b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/buildstep.h')
-rw-r--r-- | src/plugins/projectexplorer/buildstep.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/buildstep.h b/src/plugins/projectexplorer/buildstep.h index 4a368a5eeb..64c9b574f0 100644 --- a/src/plugins/projectexplorer/buildstep.h +++ b/src/plugins/projectexplorer/buildstep.h @@ -57,7 +57,6 @@ public: virtual void run(QFutureInterface<bool> &fi) = 0; virtual BuildStepConfigWidget *createConfigWidget(); - virtual bool immutable() const; virtual bool runInGuiThread() const; virtual void cancel(); @@ -87,6 +86,9 @@ public: bool widgetExpandedByDefault() const; void setWidgetExpandedByDefault(bool widgetExpandedByDefault); + bool isImmutable() const { return m_immutable; } + void setImmutable(bool immutable) { m_immutable = immutable; } + signals: /// Adds a \p task to the Issues pane. /// Do note that for linking compile output with tasks, you should first emit the task @@ -102,6 +104,7 @@ signals: private: bool m_enabled = true; + bool m_immutable = false; bool m_widgetExpandedByDefault = true; }; |