TextEditor: Replace PlainTextEditorWidget by Base + a setup function

Change-Id: I91a3bfb66a72e9234ca59f97d5260bbfc3ccb0d3
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-07-30 11:41:06 +02:00
parent ce6f3477b5
commit faa0e5b96c
12 changed files with 50 additions and 70 deletions

View File

@@ -63,7 +63,8 @@ Core::IEditor *PlainTextEditorFactory::createEditor()
{
auto doc = new PlainTextDocument;
doc->setIndenter(new NormalIndenter);
auto widget = new PlainTextEditorWidget(doc);
auto widget = new BaseTextEditorWidget(doc);
widget->setupAsPlainEditor();
TextEditorSettings::initializeEditor(widget);
connect(widget, SIGNAL(configured(Core::IEditor*)),
this, SLOT(updateEditorInfoBar(Core::IEditor*)));