forked from qt-creator/qt-creator
TextEditor: Re-organize Plain text editor setup
Change-Id: I202e66a9cd295a85e3eea31177280e2c5d409ced Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user