summaryrefslogtreecommitdiff
path: root/src/plugins/qmljseditor
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-10-15 00:36:39 +0200
committerhjk <hjk121@nokiamail.com>2014-10-15 12:35:41 +0200
commiteacaf93a594e8f4491bf69e7b95a8ffada66034f (patch)
treee5d527cd99cde76f652f773052e1ee8c2069e5b8 /src/plugins/qmljseditor
parent9ee73a4fac0168ab57cc7dcc3f4ceeb1d3d8b973 (diff)
downloadqt-creator-eacaf93a594e8f4491bf69e7b95a8ffada66034f.tar.gz
TextEditor: Factory cosmetics
Pimpl, add some convenience setters. Change-Id: I525c080179fddab6fe2bd2270505fdbf33e56be2 Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/qmljseditor')
-rw-r--r--src/plugins/qmljseditor/qmljseditor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/qmljseditor/qmljseditor.cpp b/src/plugins/qmljseditor/qmljseditor.cpp
index 8ac2604162..381dd05e89 100644
--- a/src/plugins/qmljseditor/qmljseditor.cpp
+++ b/src/plugins/qmljseditor/qmljseditor.cpp
@@ -114,9 +114,6 @@ QmlJSEditorWidget::QmlJSEditorWidget()
m_firstSementicInfo = true;
m_findReferences = new FindReferences(this);
- setParenthesesMatchingEnabled(true);
- setMarksVisible(true);
- setCodeFoldingSupported(true);
setLanguageSettingsId(QmlJSTools::Constants::QML_JS_SETTINGS_ID);
}
@@ -920,6 +917,9 @@ QmlJSEditorFactory::QmlJSEditorFactory()
setEditorCreator([]() { return new QmlJSEditor; });
setAutoCompleterCreator([]() { return new AutoCompleter; });
setCommentStyle(Utils::CommentDefinition::CppStyle);
+ setParenthesesMatchingEnabled(true);
+ setMarksVisible(true);
+ setCodeFoldingSupported(true);
addHoverHandler(new QmlJSHoverHandler);
setCompletionAssistProvider(new QmlJSCompletionAssistProvider);