forked from qt-creator/qt-creator
Rename IDocument::fileName --> filePath
That is what it actually is, wrt how Qt API calls it. Change-Id: Ied02055debf6aad75556b0d9d22e8ba2f72be555 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -318,7 +318,7 @@ bool isCppEditor(Core::IEditor *editor)
|
||||
if (!document)
|
||||
return false;
|
||||
|
||||
return CppTools::ProjectFile::classify(document->fileName()) != CppTools::ProjectFile::Unclassified;
|
||||
return CppTools::ProjectFile::classify(document->filePath()) != CppTools::ProjectFile::Unclassified;
|
||||
}
|
||||
|
||||
// Return the Cpp expression, and, if desired, the function
|
||||
@@ -359,7 +359,7 @@ QString cppExpressionAt(TextEditor::ITextEditor *editor, int pos,
|
||||
if (const Core::IDocument *document= editor->document())
|
||||
if (modelManager)
|
||||
*function = AbstractEditorSupport::functionAt(modelManager,
|
||||
document->fileName(), *line, *column);
|
||||
document->filePath(), *line, *column);
|
||||
|
||||
return expr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user