ProjectExplorer: Introduce and use a new MultiSelectionAspect

Only provide the minimum functionality to make it usable
for the target selection in Make steps.

Task-number: QTCREATORBUG-25088
Change-Id: I6458a0bd544d2fff596df3240c69e05d7bdea14b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2020-12-17 13:28:48 +01:00
parent 498f0939e4
commit 34798b3efd
6 changed files with 186 additions and 57 deletions

View File

@@ -43,13 +43,13 @@ public:
GenericMakeStep::GenericMakeStep(BuildStepList *parent, Utils::Id id)
: MakeStep(parent, id)
{
setAvailableBuildTargets({"all", "clean"});
if (parent->id() == ProjectExplorer::Constants::BUILDSTEPS_BUILD) {
setBuildTarget("all");
setSelectedBuildTarget("all");
} else if (parent->id() == ProjectExplorer::Constants::BUILDSTEPS_CLEAN) {
setBuildTarget("clean");
setSelectedBuildTarget("clean");
setIgnoreReturnValue(true);
}
setAvailableBuildTargets({"all", "clean"});
}
GenericMakeStepFactory::GenericMakeStepFactory()