Commit 885916b7 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

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
parent 4440e961
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "dolphinmainwindow.h" #include "dolphinmainwindow.h"
#include "dolphinviewcontainer.h" #include "dolphinviewcontainer.h"
#include "global.h" #include "global.h"
#include <KActionCollection>
#include <KBookmarkMenu> #include <KBookmarkMenu>
#include <KIO/Global> #include <KIO/Global>
#include <QDebug> #include <QDebug>
...@@ -47,7 +48,11 @@ DolphinBookmarkHandler::DolphinBookmarkHandler(DolphinMainWindow *mainWindow, ...@@ -47,7 +48,11 @@ DolphinBookmarkHandler::DolphinBookmarkHandler(DolphinMainWindow *mainWindow,
} }
m_bookmarkManager = KBookmarkManager::managerForFile(bookmarksFile, QStringLiteral("dolphin")); m_bookmarkManager = KBookmarkManager::managerForFile(bookmarksFile, QStringLiteral("dolphin"));
m_bookmarkManager->setUpdate(true); 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() DolphinBookmarkHandler::~DolphinBookmarkHandler()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment