summaryrefslogtreecommitdiff
path: root/src/plugins/glsleditor
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2017-04-24 16:01:14 +0200
committerEike Ziller <eike.ziller@qt.io>2017-04-26 07:34:29 +0000
commit73f2c0f4e825f5f393c3c2aea13dc770728deef9 (patch)
treea751784dd59c3addf46d75f28db0068d31075393 /src/plugins/glsleditor
parent57b3f7debb2f84d425eec248842384cd61863f3b (diff)
downloadqt-creator-73f2c0f4e825f5f393c3c2aea13dc770728deef9.tar.gz
Allow giving TextEditorFactory custom CommentDefinition
It was not possible to set custom comment styles. Also simplifies the code for the predefined styles. Change-Id: Id7f345d65b747bfac5a15e3eb15cd2beb106b281 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/glsleditor')
-rw-r--r--src/plugins/glsleditor/glsleditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/glsleditor/glsleditor.cpp b/src/plugins/glsleditor/glsleditor.cpp
index 47cf9e2a49..5160828b4b 100644
--- a/src/plugins/glsleditor/glsleditor.cpp
+++ b/src/plugins/glsleditor/glsleditor.cpp
@@ -323,7 +323,7 @@ GlslEditorFactory::GlslEditorFactory()
setEditorWidgetCreator([]() { return new GlslEditorWidget; });
setIndenterCreator([]() { return new GlslIndenter; });
setSyntaxHighlighterCreator([]() { return new GlslHighlighter; });
- setCommentStyle(Utils::CommentDefinition::CppStyle);
+ setCommentDefinition(Utils::CommentDefinition::CppStyle);
setCompletionAssistProvider(new GlslCompletionAssistProvider);
setParenthesesMatchingEnabled(true);
setMarksVisible(true);