diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2014-12-21 21:54:30 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2015-01-12 10:23:37 +0100 |
commit | c6a983d27179ebd26e692918e58d44aa77fc7f8a (patch) | |
tree | 6ef23b30a2e6c4a29c14acbb824e38bae026acdb /src/plugins/cpptools/cppmodelmanager.cpp | |
parent | 9c1b28fec265054ba4a9c13093ebcfc0f5b4c723 (diff) | |
download | qt-creator-c6a983d27179ebd26e692918e58d44aa77fc7f8a.tar.gz |
Core: Use FileName for file path in IDocument
Change-Id: I85f7398aee59d0d36f0e5c3bf88ff3c96002e394
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.cpp')
-rw-r--r-- | src/plugins/cpptools/cppmodelmanager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index a2c263ee0a..7568a32e7c 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -699,7 +699,7 @@ void CppModelManager::updateCppEditorDocuments() const QSet<Core::IDocument *> visibleCppEditorDocuments; foreach (Core::IEditor *editor, Core::EditorManager::visibleEditors()) { if (Core::IDocument *document = editor->document()) { - if (EditorDocumentHandle *cppEditorDocument = editorDocument(document->filePath())) { + if (EditorDocumentHandle *cppEditorDocument = editorDocument(document->filePath().toString())) { visibleCppEditorDocuments.insert(document); cppEditorDocument->processor()->run(); } @@ -711,7 +711,7 @@ void CppModelManager::updateCppEditorDocuments() const = Core::DocumentModel::openedDocuments().toSet(); invisibleCppEditorDocuments.subtract(visibleCppEditorDocuments); foreach (Core::IDocument *document, invisibleCppEditorDocuments) { - if (EditorDocumentHandle *cppEditorDocument = editorDocument(document->filePath())) + if (EditorDocumentHandle *cppEditorDocument = editorDocument(document->filePath().toString())) cppEditorDocument->setNeedsRefresh(true); } } @@ -887,7 +887,8 @@ void CppModelManager::onCurrentEditorChanged(Core::IEditor *editor) if (!editor || !editor->document()) return; - if (EditorDocumentHandle *cppEditorDocument = editorDocument(editor->document()->filePath())) { + if (EditorDocumentHandle *cppEditorDocument = + editorDocument(editor->document()->filePath().toString())) { if (cppEditorDocument->needsRefresh()) { cppEditorDocument->setNeedsRefresh(false); cppEditorDocument->processor()->run(); |