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:
@@ -336,7 +336,6 @@ public:
|
||||
{
|
||||
addContext(Constants::C_GLSLEDITOR_ID);
|
||||
setDuplicateSupported(true);
|
||||
setCommentStyle(Utils::CommentDefinition::CppStyle);
|
||||
setCompletionAssistProvider(ExtensionSystem::PluginManager::getObject<GlslCompletionAssistProvider>());
|
||||
}
|
||||
|
||||
@@ -368,6 +367,7 @@ GlslEditorFactory::GlslEditorFactory()
|
||||
setEditorCreator([]() { return new GlslEditor; });
|
||||
setIndenterCreator([]() { return new GlslIndenter; });
|
||||
setSyntaxHighlighterCreator([]() { return new GlslHighlighter; });
|
||||
setCommentStyle(Utils::CommentDefinition::CppStyle);
|
||||
|
||||
setEditorActionHandlers(Constants::C_GLSLEDITOR_ID,
|
||||
TextEditorActionHandler::Format
|
||||
|
||||
Reference in New Issue
Block a user