TextEditor: Setup TextMarkFactory more canonically

Change-Id: Iaa360615c47ed7c4c3e2ace95ad53006e99aa2d0
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2024-01-17 10:08:06 +01:00
parent a9621ef1fd
commit a5d165aa82
4 changed files with 17 additions and 20 deletions

View File

@@ -24,6 +24,7 @@
#include "texteditorconstants.h"
#include "texteditorsettings.h"
#include "texteditortr.h"
#include "textmark.h"
#ifdef WITH_TESTS
#include "codeassist/codeassist_test.h"
@@ -291,11 +292,6 @@ public:
TextEditorPluginPrivate *d = nullptr;
};
QObject *pluginInstance()
{
return m_instance;
}
void TextEditorPlugin::initialize()
{
#ifdef WITH_TESTS
@@ -305,6 +301,7 @@ void TextEditorPlugin::initialize()
addTestCreator(createSnippetParserTest);
#endif
setupTextMarkRegistry(this);
setupOutlineFactory();
d = new TextEditorPluginPrivate;