forked from qt-creator/qt-creator
ProjectExplorer: Move some of the BuildInfo setup code to central places
Change-Id: I8893366acb187ea1a94a8ca272ded2c46cb521d1 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -86,11 +86,10 @@ NimbleBuildConfigurationFactory::NimbleBuildConfigurationFactory()
|
||||
setSupportedProjectType(Constants::C_NIMBLEPROJECT_ID);
|
||||
setSupportedProjectMimeTypeName(Constants::C_NIMBLE_MIMETYPE);
|
||||
|
||||
setBuildGenerator([this](const Kit *k, const FilePath &projectPath, bool forSetup) {
|
||||
setBuildGenerator([](const Kit *, const FilePath &projectPath, bool forSetup) {
|
||||
const auto oneBuild = [&](BuildConfiguration::BuildType buildType, const QString &typeName) {
|
||||
BuildInfo info(this);
|
||||
BuildInfo info;
|
||||
info.buildType = buildType;
|
||||
info.kitId = k->id();
|
||||
info.typeName = typeName;
|
||||
if (forSetup) {
|
||||
info.displayName = info.typeName;
|
||||
|
||||
Reference in New Issue
Block a user