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/qmakeprojectmanager/qmakeprojectmanagerconstants.h | |
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/qmakeprojectmanager/qmakeprojectmanagerconstants.h')
-rw-r--r-- | src/plugins/qmakeprojectmanager/qmakeprojectmanagerconstants.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/qmakeprojectmanager/qmakeprojectmanagerconstants.h b/src/plugins/qmakeprojectmanager/qmakeprojectmanagerconstants.h index 03f3fd368e..71b2bd7a7a 100644 --- a/src/plugins/qmakeprojectmanager/qmakeprojectmanagerconstants.h +++ b/src/plugins/qmakeprojectmanager/qmakeprojectmanagerconstants.h @@ -34,7 +34,6 @@ namespace Constants { const char M_CONTEXT[] = "ProFileEditor.ContextMenu"; // Kinds -const char PROJECT_ID[] = "Qt4.Qt4Project"; const char PROFILE_EDITOR_ID[] = "Qt4.proFileEditor"; const char PROFILE_EDITOR_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("OpenWith::Editors", ".pro File Editor"); const char PROFILE_MIMETYPE[] = "application/vnd.qt.qmakeprofile"; |