forked from qt-creator/qt-creator
TextEditor: Simplify TextMarkRegistry
The registry is an implementation detail and doesn't need to be exported so move it to the textmark.cpp file. Change-Id: Ic103b122cb20063fa4bc220bdc90cecff27054aa Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -37,7 +37,6 @@
|
||||
#include "snippets/snippetprovider.h"
|
||||
#include "texteditoractionhandler.h"
|
||||
#include "texteditorsettings.h"
|
||||
#include "textmarkregistry.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
@@ -130,8 +129,6 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe
|
||||
m_outlineFactory = new OutlineFactory;
|
||||
addAutoReleasedObject(m_outlineFactory);
|
||||
|
||||
m_baseTextMarkRegistry = new TextMarkRegistry(this);
|
||||
|
||||
addAutoReleasedObject(new FindInFiles);
|
||||
addAutoReleasedObject(new FindInCurrentFile);
|
||||
addAutoReleasedObject(new FindInOpenFiles);
|
||||
@@ -211,11 +208,6 @@ LineNumberFilter *TextEditorPlugin::lineNumberFilter()
|
||||
return m_instance->m_lineNumberFilter;
|
||||
}
|
||||
|
||||
TextMarkRegistry *TextEditorPlugin::baseTextMarkRegistry()
|
||||
{
|
||||
return m_instance->m_baseTextMarkRegistry;
|
||||
}
|
||||
|
||||
void TextEditorPlugin::updateSearchResultsFont(const FontSettings &settings)
|
||||
{
|
||||
if (auto window = SearchResultWindow::instance()) {
|
||||
|
||||
Reference in New Issue
Block a user