summaryrefslogtreecommitdiff
path: root/src/plugins/designer
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2015-02-03 09:18:57 +0100
committerEike Ziller <eike.ziller@theqtcompany.com>2015-02-16 15:45:36 +0000
commite7fb05e038c19866f85c1cd2e49105b2f81bea0f (patch)
treeb864d13ddb88c238f315db853584da0fb750c44b /src/plugins/designer
parent2aa315d05c5fdff88490dabf291b32989dd9c7f9 (diff)
downloadqt-creator-e7fb05e038c19866f85c1cd2e49105b2f81bea0f.tar.gz
TextEditor: Simplify configuring generic highlighter
* configureMimeType -> configureGenericHighlighter, since that is what it actually does. * setupAsPlainEditor -> setupGenericHighlighter, since that is what it actually does * avoid multiple highlighting definition lookups * unify code paths by not separately creating generic highlighters through the factories Change-Id: I9579ca5736bbf08c01b8e41b63c6b9f36bdc725e Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/designer')
-rw-r--r--src/plugins/designer/formeditorw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/designer/formeditorw.cpp b/src/plugins/designer/formeditorw.cpp
index df5d63ca9b..af42604c14 100644
--- a/src/plugins/designer/formeditorw.cpp
+++ b/src/plugins/designer/formeditorw.cpp
@@ -120,7 +120,6 @@ public:
void finalizeInitialization()
{
- setupAsPlainEditor();
setReadOnly(true);
}
};
@@ -133,6 +132,7 @@ public:
setId(K_DESIGNER_XML_EDITOR_ID);
setEditorCreator([]() { return new FormWindowEditor; });
setEditorWidgetCreator([]() { return new Internal::DesignerXmlEditorWidget; });
+ setUseGenericHighlighter(true);
setDuplicatedSupported(false);
}