summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/project.h
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2017-12-20 11:13:26 +0100
committerhjk <hjk@qt.io>2017-12-20 12:35:14 +0000
commitb2a16190e8e53815ef81c248b96dbe55434d7fb5 (patch)
treea8a30382c74b81367639e387850e7106d94b8310 /src/plugins/projectexplorer/project.h
parentbc4efa662c75ad862065058d25a34379330f2ac3 (diff)
downloadqt-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/projectexplorer/project.h')
-rw-r--r--src/plugins/projectexplorer/project.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/project.h b/src/plugins/projectexplorer/project.h
index c50841648b..4c44aacaaf 100644
--- a/src/plugins/projectexplorer/project.h
+++ b/src/plugins/projectexplorer/project.h
@@ -210,7 +210,6 @@ signals:
void settingsLoaded();
void aboutToSaveSettings();
- void projectContextUpdated();
void projectLanguagesUpdated();
void parsingStarted();
@@ -233,7 +232,6 @@ protected:
void setId(Core::Id id);
void setRootProjectNode(ProjectNode *root); // takes ownership!
- void setProjectContext(Core::Context context);
void setProjectLanguages(Core::Context language);
void addProjectLanguage(Core::Id id);
void removeProjectLanguage(Core::Id id);