diff options
author | Eike Ziller <eike.ziller@nokia.com> | 2012-02-14 16:43:51 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2012-02-20 13:32:49 +0100 |
commit | d66acb51d0c8b511df9f679806cbd3d84cce41ef (patch) | |
tree | 58289c9e7f7bc6107b4d620fad791a206d097555 /src/plugins/cmakeprojectmanager/cmakeeditor.cpp | |
parent | 266da3568d2db185f67227d38e29cd20d28fb2bd (diff) | |
download | qt-creator-d66acb51d0c8b511df9f679806cbd3d84cce41ef.tar.gz |
Rename IFile->IDocument and FileManager->DocumentManager
And adapt the other API respectively.
Change-Id: I1e04e555409be09242db6890f9e013396f83aeed
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeeditor.cpp')
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmakeeditor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeeditor.cpp b/src/plugins/cmakeprojectmanager/cmakeeditor.cpp index 27057cce2e..a0586f9168 100644 --- a/src/plugins/cmakeprojectmanager/cmakeeditor.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeeditor.cpp @@ -79,7 +79,7 @@ Core::Id CMakeEditor::id() const void CMakeEditor::markAsChanged() { - if (!file()->isModified()) + if (!document()->isModified()) return; if (m_infoBarShown) return; @@ -87,7 +87,7 @@ void CMakeEditor::markAsChanged() Core::InfoBarEntry info(QLatin1String("CMakeEditor.RunCMake"), tr("Changes to cmake files are shown in the project tree after building.")); info.setCustomButtonInfo(tr("Build now"), this, SLOT(build())); - file()->infoBar()->addInfo(info); + document()->infoBar()->addInfo(info); } void CMakeEditor::build() @@ -97,7 +97,7 @@ void CMakeEditor::build() foreach (ProjectExplorer::Project *p, projects) { CMakeProject *cmakeProject = qobject_cast<CMakeProject *>(p); if (cmakeProject) { - if (cmakeProject->isProjectFile(file()->fileName())) { + if (cmakeProject->isProjectFile(document()->fileName())) { ProjectExplorer::ProjectExplorerPlugin::instance()->buildProject(cmakeProject); break; } |