summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/plaintexteditor.cpp
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2011-06-29 17:45:52 +0200
committerLeandro T. C. Melo <leandro.melo@nokia.com>2011-06-30 11:23:15 +0200
commit754b8b3ac70e123bdb57c0dd21082ccc534a4366 (patch)
tree7c914751a5d6756d681116444e9b50cd9cb89947 /src/plugins/texteditor/plaintexteditor.cpp
parent3317acc9aaaca438c683a746d1ac6fa569e4cc01 (diff)
downloadqt-creator-754b8b3ac70e123bdb57c0dd21082ccc534a4366.tar.gz
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>
Diffstat (limited to 'src/plugins/texteditor/plaintexteditor.cpp')
-rw-r--r--src/plugins/texteditor/plaintexteditor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/texteditor/plaintexteditor.cpp b/src/plugins/texteditor/plaintexteditor.cpp
index ca6008d0e7..d2925ff0d7 100644
--- a/src/plugins/texteditor/plaintexteditor.cpp
+++ b/src/plugins/texteditor/plaintexteditor.cpp
@@ -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();