Skip to content
Snippets Groups Projects
Commit 0a8f9326 authored by Christian Kandeler's avatar Christian Kandeler Committed by Tobias Hunger
Browse files

ProjectExplorer: Add convenience function BuildStepList::appendStep().


In most cases, there is no value in writing out the index explicitly,
and it is downright annoying when adding steps conditionally.

Change-Id: I2a3947d3dbc11364046c0917c661497d0720725a
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent eb682d15
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,7 @@ public: ...@@ -58,6 +58,7 @@ public:
bool contains(const Core::Id id) const; bool contains(const Core::Id id) const;
void insertStep(int position, BuildStep *step); void insertStep(int position, BuildStep *step);
void appendStep(BuildStep *step) { insertStep(count(), step); }
bool removeStep(int position); bool removeStep(int position);
void moveStepUp(int position); void moveStepUp(int position);
BuildStep *at(int position); BuildStep *at(int position);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment