diff options
author | hjk <hjk@qt.io> | 2017-12-20 11:13:26 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2017-12-20 12:35:14 +0000 |
commit | b2a16190e8e53815ef81c248b96dbe55434d7fb5 (patch) | |
tree | a8a30382c74b81367639e387850e7106d94b8310 /src/plugins/autotoolsprojectmanager | |
parent | bc4efa662c75ad862065058d25a34379330f2ac3 (diff) | |
download | qt-creator-b2a16190e8e53815ef81c248b96dbe55434d7fb5.tar.gz |
Use project id uniformly as project context
The possibly intented flexibility e.g. to have different project types
share the same idea of a common context was never used, in all cases
we had a 1:1 relation ship between project ids and ids that were used
as context. This led to oversights like the one fixed in 60fb35a2.
This patch here uses the project id unconditionally as context and
drops all context ids. If we'll ever have the situation where the
original flexibility was needed, Project::projectContext() could be
made virtual and overridden were needed.
Also, the context was never modified for any given project, so the
updating machinery is not needed.
Change-Id: I3f7fac0ed5e4704e126558987c48577f26082dfd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/autotoolsprojectmanager')
-rw-r--r-- | src/plugins/autotoolsprojectmanager/autotoolsproject.cpp | 1 | ||||
-rw-r--r-- | src/plugins/autotoolsprojectmanager/autotoolsprojectconstants.h | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp b/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp index 01105d8497..4f80186c33 100644 --- a/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp +++ b/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp @@ -73,7 +73,6 @@ AutotoolsProject::AutotoolsProject(const Utils::FileName &fileName) : m_cppCodeModelUpdater(new CppTools::CppProjectUpdater(this)) { setId(Constants::AUTOTOOLS_PROJECT_ID); - setProjectContext(Core::Context(Constants::PROJECT_CONTEXT)); setProjectLanguages(Core::Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID)); setDisplayName(projectDirectory().fileName()); } diff --git a/src/plugins/autotoolsprojectmanager/autotoolsprojectconstants.h b/src/plugins/autotoolsprojectmanager/autotoolsprojectconstants.h index d14a9177a0..df084d6b48 100644 --- a/src/plugins/autotoolsprojectmanager/autotoolsprojectconstants.h +++ b/src/plugins/autotoolsprojectmanager/autotoolsprojectconstants.h @@ -39,6 +39,5 @@ namespace Constants { //Project const char AUTOTOOLS_PROJECT_ID[] = "AutotoolsProjectManager.AutotoolsProject"; - const char PROJECT_CONTEXT[] = "AutotoolsProject.ProjectContext"; } // namespace Constants } // namespace AutotoolsProjectManager |