Editors: Dont configure form's text editor unnecessarily

It's sufficient (and actually better) to configure the plain
text editor at the moment in which the xml is synchronized.

Task-number: QTCREATORBUG-5251
Change-Id: Ib2a3e1828f61770871486b8fbc1618abda1a5a74
Reviewed-on: http://codereview.qt.nokia.com/931
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Leandro Melo
2011-06-29 17:45:52 +02:00
committed by Leandro T. C. Melo
parent 3317acc9aa
commit 754b8b3ac7
4 changed files with 8 additions and 11 deletions

View File

@@ -154,6 +154,11 @@ void PlainTextEditorWidget::configure()
configure(mimeType);
}
void PlainTextEditorWidget::configure(const QString &mimeType)
{
configure(Core::ICore::instance()->mimeDatabase()->findByType(mimeType));
}
void PlainTextEditorWidget::configure(const Core::MimeType &mimeType)
{
Highlighter *highlighter = new Highlighter();