ProjectExplorer: Align signatures of BuildConfiguration

... availableBuilds() and availableSetups().

Goal is to merge them and inline all the local createBuildInfo()
functions.

Change-Id: I9f19093163808b6da6dc83977894420e08a1edd9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-06-26 18:04:47 +02:00
parent e7c6169d70
commit f94e55b807
17 changed files with 37 additions and 30 deletions

View File

@@ -481,13 +481,14 @@ BuildConfiguration::BuildType CMakeBuildConfigurationFactory::cmakeBuildTypeToBu
return BuildConfiguration::Unknown;
}
QList<BuildInfo> CMakeBuildConfigurationFactory::availableBuilds(const Target *parent) const
QList<BuildInfo>
CMakeBuildConfigurationFactory::availableBuilds(const Kit *k, const FilePath &projectPath) const
{
QList<BuildInfo> result;
for (int type = BuildTypeNone; type != BuildTypeLast; ++type) {
result << createBuildInfo(parent->kit(),
parent->project()->projectDirectory().toString(),
result << createBuildInfo(k,
projectPath.toString(),
BuildType(type));
}
return result;