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
@@ -1221,7 +1221,7 @@ static QTextCodec *findProjectCodec(const QString &dir)
|
||||
const ProjectList::const_iterator pcend = projects.constEnd();
|
||||
for (ProjectList::const_iterator it = projects.constBegin(); it != pcend; ++it)
|
||||
if (const Core::IDocument *document = (*it)->document())
|
||||
if (document->filePath().startsWith(dir)) {
|
||||
if (document->filePath().toString().startsWith(dir)) {
|
||||
QTextCodec *codec = (*it)->editorConfiguration()->textCodec();
|
||||
return codec;
|
||||
}
|
||||
@@ -1267,7 +1267,7 @@ int VcsBaseEditor::lineNumberOfCurrentEditor(const QString ¤tFile)
|
||||
return -1;
|
||||
if (!currentFile.isEmpty()) {
|
||||
const Core::IDocument *idocument = ed->document();
|
||||
if (!idocument || idocument->filePath() != currentFile)
|
||||
if (!idocument || idocument->filePath().toString() != currentFile)
|
||||
return -1;
|
||||
}
|
||||
const BaseTextEditor *eda = qobject_cast<const BaseTextEditor *>(ed);
|
||||
|
||||
Reference in New Issue
Block a user