TextEditor: Re-organize Plain text editor setup

Change-Id: I202e66a9cd295a85e3eea31177280e2c5d409ced
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
hjk
2014-08-22 19:14:48 +02:00
parent 550db7d1d1
commit f9f5fdcf2b
4 changed files with 61 additions and 85 deletions

View File

@@ -30,25 +30,17 @@
#ifndef PLAINTEXTEDITORFACTORY_H
#define PLAINTEXTEDITORFACTORY_H
#include <coreplugin/editormanager/ieditorfactory.h>
#include <QStringList>
#include <texteditor/basetexteditor.h>
namespace TextEditor {
namespace Internal {
class PlainTextEditorFactory : public Core::IEditorFactory
class PlainTextEditorFactory : public TextEditor::BaseTextEditorFactory
{
Q_OBJECT
public:
PlainTextEditorFactory(QObject *parent = 0);
using Core::IEditorFactory::addMimeType;
Core::IEditor *createEditor();
private slots:
void updateEditorInfoBar(Core::IEditor *editor);
PlainTextEditorFactory();
};
} // namespace Internal