diff options
author | Eike Ziller <eike.ziller@qt.io> | 2017-04-24 16:01:14 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2017-04-26 07:34:29 +0000 |
commit | 73f2c0f4e825f5f393c3c2aea13dc770728deef9 (patch) | |
tree | a751784dd59c3addf46d75f28db0068d31075393 /src/plugins/android/javaeditor.cpp | |
parent | 57b3f7debb2f84d425eec248842384cd61863f3b (diff) |
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/android/javaeditor.cpp')
-rw-r--r-- | src/plugins/android/javaeditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/android/javaeditor.cpp b/src/plugins/android/javaeditor.cpp index 6d52b5772cf..6cddfa95a6a 100644 --- a/src/plugins/android/javaeditor.cpp +++ b/src/plugins/android/javaeditor.cpp @@ -65,7 +65,7 @@ JavaEditorFactory::JavaEditorFactory() setDocumentCreator(createJavaDocument); setUseGenericHighlighter(true); - setCommentStyle(Utils::CommentDefinition::CppStyle); + setCommentDefinition(Utils::CommentDefinition::CppStyle); setEditorActionHandlers(TextEditor::TextEditorActionHandler::UnCommentSelection); setCompletionAssistProvider(new JavaCompletionAssistProvider); setMarksVisible(true); |