forked from qt-creator/qt-creator
Added default implementation for IEditorFactory::open().
This change allows to avoid massive code duplication along editors. Change-Id: Ifdc6ae4b44ab399d34193ab8dddfa1f76d65ad11 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
committed by
Eike Ziller
parent
6630857deb
commit
ec38c829a7
@@ -108,12 +108,6 @@ QString CppEditorFactory::displayName() const
|
||||
return tr(CppEditor::Constants::CPPEDITOR_DISPLAY_NAME);
|
||||
}
|
||||
|
||||
Core::IDocument *CppEditorFactory::open(const QString &fileName)
|
||||
{
|
||||
Core::IEditor *iface = Core::EditorManager::instance()->openEditor(fileName, id());
|
||||
return iface ? iface->document() : 0;
|
||||
}
|
||||
|
||||
Core::IEditor *CppEditorFactory::createEditor(QWidget *parent)
|
||||
{
|
||||
CPPEditorWidget *editor = new CPPEditorWidget(parent);
|
||||
|
||||
Reference in New Issue
Block a user