forked from qt-creator/qt-creator
ProjectExplorer: Pass id directly to BuildConfigurations
It's what the base class wants, and follows run and deploy precedence. Change-Id: I26eff43337851702417e7e4284fc390b904060f6 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -60,8 +60,8 @@ namespace Internal {
|
||||
const char INITIAL_ARGUMENTS[] = "CMakeProjectManager.CMakeBuildConfiguration.InitialArgument"; // Obsolete since QtC 3.7
|
||||
const char CONFIGURATION_KEY[] = "CMake.Configuration";
|
||||
|
||||
CMakeBuildConfiguration::CMakeBuildConfiguration(Target *parent)
|
||||
: BuildConfiguration(parent, Constants::CMAKE_BC_ID)
|
||||
CMakeBuildConfiguration::CMakeBuildConfiguration(Target *parent, Core::Id id)
|
||||
: BuildConfiguration(parent, id)
|
||||
{
|
||||
CMakeProject *project = static_cast<CMakeProject *>(target()->project());
|
||||
setBuildDirectory(shadowBuildDirectory(project->projectFilePath(),
|
||||
@@ -334,7 +334,8 @@ ProjectExplorer::NamedWidget *CMakeBuildConfiguration::createConfigWidget()
|
||||
|
||||
CMakeBuildConfigurationFactory::CMakeBuildConfigurationFactory()
|
||||
{
|
||||
registerBuildConfiguration<CMakeBuildConfiguration>(Constants::CMAKE_BC_ID);
|
||||
registerBuildConfiguration<CMakeBuildConfiguration>("CMakeProjectManager.CMakeBuildConfiguration");
|
||||
|
||||
setSupportedProjectType(CMakeProjectManager::Constants::CMAKEPROJECT_ID);
|
||||
setSupportedProjectMimeTypeName(Constants::CMAKEPROJECTMIMETYPE);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ class CMakeBuildConfiguration : public ProjectExplorer::BuildConfiguration
|
||||
Q_OBJECT
|
||||
|
||||
friend class ProjectExplorer::IBuildConfigurationFactory;
|
||||
explicit CMakeBuildConfiguration(ProjectExplorer::Target *parent);
|
||||
CMakeBuildConfiguration(ProjectExplorer::Target *parent, Core::Id id);
|
||||
|
||||
public:
|
||||
void emitBuildTypeChanged();
|
||||
|
||||
@@ -42,9 +42,6 @@ const char RUNCMAKECONTEXTMENU[] = "CMakeProject.RunCMakeContextMenu";
|
||||
// Project
|
||||
const char CMAKEPROJECT_ID[] = "CMakeProjectManager.CMakeProject";
|
||||
|
||||
// Buildconfiguration
|
||||
const char CMAKE_BC_ID[] = "CMakeProjectManager.CMakeBuildConfiguration";
|
||||
|
||||
// Menu
|
||||
const char M_CONTEXT[] = "CMakeEditor.ContextMenu";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user