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:
@@ -78,14 +78,14 @@ QString QmlJSEditorFactory::displayName() const
|
||||
}
|
||||
|
||||
|
||||
Core::IFile *QmlJSEditorFactory::open(const QString &fileName)
|
||||
Core::IDocument *QmlJSEditorFactory::open(const QString &fileName)
|
||||
{
|
||||
Core::IEditor *iface = Core::EditorManager::instance()->openEditor(fileName, id());
|
||||
if (!iface) {
|
||||
qWarning() << "QmlEditorFactory::open: openEditor failed for " << fileName;
|
||||
return 0;
|
||||
}
|
||||
return iface->file();
|
||||
return iface->document();
|
||||
}
|
||||
|
||||
Core::IEditor *QmlJSEditorFactory::createEditor(QWidget *parent)
|
||||
|
||||
Reference in New Issue
Block a user