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:
@@ -71,7 +71,7 @@ QString FormEditorFactory::displayName() const
|
||||
return tr(C_DESIGNER_XML_DISPLAY_NAME);
|
||||
}
|
||||
|
||||
Core::IFile *FormEditorFactory::open(const QString &fileName)
|
||||
Core::IDocument *FormEditorFactory::open(const QString &fileName)
|
||||
{
|
||||
Core::IEditor *iface = Core::EditorManager::instance()->openEditor(fileName, id());
|
||||
if (!iface)
|
||||
@@ -80,9 +80,9 @@ Core::IFile *FormEditorFactory::open(const QString &fileName)
|
||||
Core::InfoBarEntry info(QLatin1String(Constants::INFO_READ_ONLY),
|
||||
tr("This file can only be edited in <b>Design</b> mode."));
|
||||
info.setCustomButtonInfo(tr("Switch mode"), this, SLOT(designerModeClicked()));
|
||||
iface->file()->infoBar()->addInfo(info);
|
||||
iface->document()->infoBar()->addInfo(info);
|
||||
}
|
||||
return iface->file();
|
||||
return iface->document();
|
||||
}
|
||||
|
||||
Core::IEditor *FormEditorFactory::createEditor(QWidget *parent)
|
||||
|
||||
Reference in New Issue
Block a user