mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Port away from deprecated KBookmarksmenu API
Summary: Needs to wait until we can depend on 5.65 See D25660 for context Reviewers: #dolphin, elvisangelaccio Reviewed By: #dolphin, elvisangelaccio Subscribers: kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D25665
This commit is contained in:
parent
4440e961a0
commit
885916b7b4
|
@ -21,6 +21,7 @@
|
|||
#include "dolphinmainwindow.h"
|
||||
#include "dolphinviewcontainer.h"
|
||||
#include "global.h"
|
||||
#include <KActionCollection>
|
||||
#include <KBookmarkMenu>
|
||||
#include <KIO/Global>
|
||||
#include <QDebug>
|
||||
|
@ -47,7 +48,11 @@ DolphinBookmarkHandler::DolphinBookmarkHandler(DolphinMainWindow *mainWindow,
|
|||
}
|
||||
m_bookmarkManager = KBookmarkManager::managerForFile(bookmarksFile, QStringLiteral("dolphin"));
|
||||
m_bookmarkManager->setUpdate(true);
|
||||
m_bookmarkMenu.reset(new KBookmarkMenu(m_bookmarkManager, this, menu, collection));
|
||||
m_bookmarkMenu.reset(new KBookmarkMenu(m_bookmarkManager, this, menu));
|
||||
|
||||
collection->addAction(QStringLiteral("add_bookmark"), m_bookmarkMenu->addBookmarkAction());
|
||||
collection->addAction(QStringLiteral("edit_bookmarks"), m_bookmarkMenu->editBookmarksAction());
|
||||
collection->addAction(QStringLiteral("add_bookmarks_list"), m_bookmarkMenu->bookmarkTabsAsFolderAction());
|
||||
}
|
||||
|
||||
DolphinBookmarkHandler::~DolphinBookmarkHandler()
|
||||
|
|
Loading…
Reference in a new issue