ProjectExplorer: Use some setters for GenericMakeStep

Instead of using constructor arguments. This makes the constructor
signatures uniform and allows construction of the steps by Id via
the factories.

Change-Id: Idba1b04ec674e36c39950d5949d42ac8043b28c3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-07-26 13:58:42 +02:00
parent a34bf6a23b
commit 4fd3e73b54
4 changed files with 20 additions and 12 deletions

View File

@@ -49,8 +49,9 @@ MakeStepFactory::MakeStepFactory()
// MakeStep
MakeStep::MakeStep(ProjectExplorer::BuildStepList *bsl)
: ProjectExplorer::MakeStep(bsl, MAKE_STEP_ID, QString(), {"all", "clean"})
: ProjectExplorer::MakeStep(bsl, MAKE_STEP_ID)
{
setAvailableBuildTargets({"all", "clean"});
if (bsl->id() == ProjectExplorer::Constants::BUILDSTEPS_CLEAN) {
setBuildTarget("clean", true);
setClean(true);