forked from qt-creator/qt-creator
Snippets: Make it easier for plugins to add snippets groups
Groups are no longer enum values but identified from snippet providers.
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
#include "cppoutline.h"
|
||||
#include "cppquickfixcollector.h"
|
||||
#include "cpptypehierarchy.h"
|
||||
#include "cppsnippeteditordecorator.h"
|
||||
#include "cppsnippetprovider.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/coreconstants.h>
|
||||
@@ -212,7 +212,7 @@ bool CppPlugin::initialize(const QStringList & /*arguments*/, QString *errorMess
|
||||
addAutoReleasedObject(new CppHoverHandler);
|
||||
addAutoReleasedObject(new CppOutlineWidgetFactory);
|
||||
addAutoReleasedObject(new CppTypeHierarchyFactory);
|
||||
addAutoReleasedObject(new CppSnippetEditorDecorator);
|
||||
addAutoReleasedObject(new CppSnippetProvider);
|
||||
|
||||
m_quickFixCollector = new CppQuickFixCollector;
|
||||
addAutoReleasedObject(m_quickFixCollector);
|
||||
|
||||
Reference in New Issue
Block a user