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/cpptools/cppmodelmanager.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/cpptools/cppmodelmanager.cpp')
-rw-r--r-- | src/plugins/cpptools/cppmodelmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index 2429265fb6..81e4ca6e0c 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -850,7 +850,7 @@ CppModelManager::WorkingCopy CppModelManager::buildWorkingCopyList() it.next(); TextEditor::ITextEditor *textEditor = it.key(); CppEditorSupport *editorSupport = it.value(); - QString fileName = textEditor->file()->fileName(); + QString fileName = textEditor->document()->fileName(); workingCopy.insert(fileName, editorSupport->contents(), editorSupport->editorRevision()); } @@ -1072,7 +1072,7 @@ void CppModelManager::updateEditor(Document::Ptr doc) QList<Core::IEditor *> openedEditors = Core::ICore::editorManager()->openedEditors(); foreach (Core::IEditor *editor, openedEditors) { - if (editor->file()->fileName() == fileName) { + if (editor->document()->fileName() == fileName) { TextEditor::ITextEditor *textEditor = qobject_cast<TextEditor::ITextEditor *>(editor); if (! textEditor) continue; |