forked from qt-creator/qt-creator
ProjectExplorer: Add some more functions to buildsteplist
Use those functions instead of repeating code all over the place. Change-Id: I03161663b4d5c538fb2ea667353ab7846373ad81 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -168,6 +168,11 @@ QList<BuildStep *> BuildStepList::steps() const
|
||||
return m_steps;
|
||||
}
|
||||
|
||||
QList<BuildStep *> BuildStepList::steps(const std::function<bool (const BuildStep *)> &filter) const
|
||||
{
|
||||
return Utils::filtered(steps(), filter);
|
||||
}
|
||||
|
||||
void BuildStepList::insertStep(int position, BuildStep *step)
|
||||
{
|
||||
m_steps.insert(position, step);
|
||||
|
||||
Reference in New Issue
Block a user