forked from qt-creator/qt-creator
ProjectExplorer: Make Project::id value based
Change-Id: Ie210d2a068158c6caaac66aae58cbd886f61c18d Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -92,6 +92,7 @@ CMakeProject::CMakeProject(CMakeManager *manager, const QString &fileName)
|
||||
m_rootNode(new CMakeProjectNode(fileName)),
|
||||
m_watcher(new QFileSystemWatcher(this))
|
||||
{
|
||||
setId(Constants::CMAKEPROJECT_ID);
|
||||
setProjectContext(Core::Context(CMakeProjectManager::Constants::PROJECTCONTEXT));
|
||||
setProjectLanguages(Core::Context(ProjectExplorer::Constants::LANG_CXX));
|
||||
|
||||
@@ -512,11 +513,6 @@ QString CMakeProject::displayName() const
|
||||
return m_projectName;
|
||||
}
|
||||
|
||||
Core::Id CMakeProject::id() const
|
||||
{
|
||||
return Core::Id(Constants::CMAKEPROJECT_ID);
|
||||
}
|
||||
|
||||
Core::IDocument *CMakeProject::document() const
|
||||
{
|
||||
return m_file;
|
||||
|
||||
@@ -80,7 +80,6 @@ public:
|
||||
~CMakeProject();
|
||||
|
||||
QString displayName() const;
|
||||
Core::Id id() const;
|
||||
Core::IDocument *document() const;
|
||||
CMakeManager *projectManager() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user