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:
@@ -108,10 +108,10 @@ QString CppEditorFactory::displayName() const
|
||||
return tr(CppEditor::Constants::CPPEDITOR_DISPLAY_NAME);
|
||||
}
|
||||
|
||||
Core::IFile *CppEditorFactory::open(const QString &fileName)
|
||||
Core::IDocument *CppEditorFactory::open(const QString &fileName)
|
||||
{
|
||||
Core::IEditor *iface = Core::EditorManager::instance()->openEditor(fileName, id());
|
||||
return iface ? iface->file() : 0;
|
||||
return iface ? iface->document() : 0;
|
||||
}
|
||||
|
||||
Core::IEditor *CppEditorFactory::createEditor(QWidget *parent)
|
||||
|
||||
Reference in New Issue
Block a user