forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -93,7 +93,7 @@ QMap<QString, QString> ITextEditor::openedTextEditorsContents()
|
||||
ITextEditor *textEditor = qobject_cast<ITextEditor *>(editor);
|
||||
if (!textEditor)
|
||||
continue;
|
||||
QString fileName = textEditor->file()->fileName();
|
||||
QString fileName = textEditor->document()->fileName();
|
||||
workingCopy[fileName] = textEditor->contents();
|
||||
}
|
||||
return workingCopy;
|
||||
@@ -106,7 +106,7 @@ QMap<QString, QTextCodec *> TextEditor::ITextEditor::openedTextEditorsEncodings(
|
||||
ITextEditor *textEditor = qobject_cast<ITextEditor *>(editor);
|
||||
if (!textEditor)
|
||||
continue;
|
||||
QString fileName = textEditor->file()->fileName();
|
||||
QString fileName = textEditor->document()->fileName();
|
||||
workingCopy[fileName] = textEditor->textCodec();
|
||||
}
|
||||
return workingCopy;
|
||||
|
||||
Reference in New Issue
Block a user