forked from qt-creator/qt-creator
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: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
eb682d158a
commit
0a8f93268b
@@ -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);
|
||||||
|
Reference in New Issue
Block a user