forked from qt-creator/qt-creator
Bookmark: add locator filter for bookmarks
Change-Id: I9107356d52bbf6d1e77b30d7057b56efd670c724 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "bookmarksplugin.h"
|
||||
|
||||
#include "bookmarkfilter.h"
|
||||
#include "bookmarkmanager.h"
|
||||
#include "bookmarks_global.h"
|
||||
|
||||
@@ -109,6 +111,8 @@ bool BookmarksPlugin::initialize(const QStringList & /*arguments*/, QString *)
|
||||
|
||||
m_bookmarkManager = new BookmarkManager;
|
||||
|
||||
addAutoReleasedObject(new BookmarkFilter(m_bookmarkManager));
|
||||
|
||||
connect(m_toggleAction, &QAction::triggered, [this]() {
|
||||
BaseTextEditor *editor = BaseTextEditor::currentTextEditor();
|
||||
if (editor && !editor->document()->isTemporary())
|
||||
|
||||
Reference in New Issue
Block a user