forked from qt-creator/qt-creator
TextEditor: Move comment definitions back to *Widget
Only used there, and avoids back-links to editors. Change-Id: I81206057ce89d42aef7febb840cf9e44b869df0e Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -62,7 +62,6 @@ public:
|
||||
{
|
||||
addContext(Constants::C_PROFILEEDITOR);
|
||||
setDuplicateSupported(true);
|
||||
setCommentStyle(Utils::CommentDefinition::HashStyle);
|
||||
setCompletionAssistProvider(ExtensionSystem::PluginManager::getObject<ProFileCompletionAssistProvider>());
|
||||
}
|
||||
};
|
||||
@@ -229,6 +228,7 @@ ProFileEditorFactory::ProFileEditorFactory()
|
||||
setEditorWidgetCreator([]() { return new ProFileEditorWidget; });
|
||||
setEditorCreator([]() { return new ProFileEditor; });
|
||||
|
||||
setCommentStyle(Utils::CommentDefinition::HashStyle);
|
||||
setEditorActionHandlers(Constants::C_PROFILEEDITOR,
|
||||
TextEditorActionHandler::UnCommentSelection
|
||||
| TextEditorActionHandler::JumpToFileUnderCursor);
|
||||
|
||||
Reference in New Issue
Block a user