diff options
author | hjk <hjk@qt.io> | 2024-01-17 15:21:25 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2024-01-18 07:21:05 +0000 |
commit | c8bb7897f5bfca8bd2d334b6a00f46d597c1a639 (patch) | |
tree | c9e151d643ec5cec58e42d11cc50871662f6e1a4 /src/plugins/texteditor/texteditorplugin.cpp | |
parent | b7d646644d904c6dbdc556d33de4843903cada1c (diff) |
TextEditor: Use new setup pattern for BookmarkView
Change-Id: I934f1bd6cb3889c4199176cf8d15beaee805f86c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/texteditor/texteditorplugin.cpp')
-rw-r--r-- | src/plugins/texteditor/texteditorplugin.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/plugins/texteditor/texteditorplugin.cpp b/src/plugins/texteditor/texteditorplugin.cpp index 249cbcf764..5772a111b4 100644 --- a/src/plugins/texteditor/texteditorplugin.cpp +++ b/src/plugins/texteditor/texteditorplugin.cpp @@ -83,7 +83,6 @@ public: void createStandardContextMenu(); BookmarkFilter m_bookmarkFilter; - BookmarkViewFactory m_bookmarkViewFactory; TextEditorSettings settings; @@ -136,24 +135,16 @@ void TextEditorPluginPrivate::requestContextMenu(TextEditorWidget *widget, bookmarkManager().requestContextMenu(widget->textDocument()->filePath(), lineNumber, menu); } -static class TextEditorPlugin *m_instance = nullptr; - class TextEditorPlugin final : public ExtensionSystem::IPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "TextEditor.json") public: - TextEditorPlugin() - { - m_instance = this; - } - ~TextEditorPlugin() final { delete d; d = nullptr; - m_instance = nullptr; } ShutdownFlag aboutToShutdown() final; @@ -178,6 +169,7 @@ void TextEditorPlugin::initialize() setupLineNumberFilter(); // Goto line functionality for quick open setupBookmarkManager(this); + setupBookmarkView(); d = new TextEditorPluginPrivate; |