forked from qt-creator/qt-creator
Core: Use FileName for file path in IDocument
Change-Id: I85f7398aee59d0d36f0e5c3bf88ff3c96002e394 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
9c1b28fec2
commit
c6a983d271
@@ -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();
|
||||
|
Reference in New Issue
Block a user