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:
@@ -312,9 +312,9 @@ void Manager::gotoLocations(const QList<QVariant> &list)
|
||||
Core::IEditor *editor = Core::EditorManager::instance()->currentEditor();
|
||||
if (editor) {
|
||||
// get current file name
|
||||
Core::IFile *file = editor->file();
|
||||
if (file)
|
||||
fileName = file->fileName();
|
||||
Core::IDocument *document = editor->document();
|
||||
if (document)
|
||||
fileName = document->fileName();
|
||||
|
||||
// if text file - what is current position?
|
||||
TextEditor::ITextEditor *textEditor = qobject_cast<TextEditor::ITextEditor *>(editor);
|
||||
|
||||
Reference in New Issue
Block a user