Commit d2571548 authored by Eike Ziller's avatar Eike Ziller Committed by David Schulz
Browse files

Remove unneeded IEditorFactor::open re-implementations.



Change-Id: I261bc1ee09a2c22155e4874a4429a868d837c256
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent 9647ce69
......@@ -103,11 +103,6 @@ QString ImageViewerFactory::displayName() const
return qApp->translate("OpenWith::Editors", Constants::IMAGEVIEWER_DISPLAY_NAME);
}
Core::IDocument *ImageViewerFactory::open(const QString & /*fileName*/)
{
return 0;
}
void ImageViewerFactory::extensionsInitialized()
{
d->actionHandler->createActions();
......
......@@ -50,7 +50,6 @@ public:
QStringList mimeTypes() const;
Core::Id id() const;
QString displayName() const;
Core::IDocument *open(const QString &fileName);
void extensionsInitialized();
......
......@@ -56,16 +56,6 @@ QString EditorFactory::displayName() const
return tr(Constants::C_EDITOR_DISPLAY_NAME);
}
Core::IDocument *EditorFactory::open(const QString &fileName)
{
Core::IEditor *iface = Core::EditorManager::instance()->openEditor(fileName, id());
if (!iface) {
qWarning() << "CEditorFactory::open: openEditor failed for " << fileName;
return 0;
}
return iface->document();
}
Core::IEditor *EditorFactory::createEditor(QWidget *parent)
{
EditorWidget *widget = new EditorWidget(parent);
......
......@@ -54,11 +54,6 @@ public:
Core::Id id() const;
QString displayName() const;
/**
Opens file in new editor
*/
Core::IDocument *open(const QString &fileName);
/**
Creates and initializes new editor widget
*/
......
......@@ -61,12 +61,6 @@ QString BarDescriptorEditorFactory::displayName() const
return tr("Bar descriptor editor");
}
Core::IDocument *BarDescriptorEditorFactory::open(const QString &fileName)
{
Core::IEditor *iface = Core::EditorManager::instance()->openEditor(fileName, id());
return iface ? iface->document() : 0;
}
Core::IEditor *BarDescriptorEditorFactory::createEditor(QWidget *parent)
{
BarDescriptorEditorWidget *editorWidget = new BarDescriptorEditorWidget(parent);
......
......@@ -48,7 +48,6 @@ public:
QStringList mimeTypes() const;
Core::Id id() const;
QString displayName() const;
Core::IDocument *open(const QString &fileName);
Core::IEditor *createEditor(QWidget *parent);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment