Commit dbbb671c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use not deprecated method

parent cb5c60ba
......@@ -77,7 +77,7 @@ include_directories(${sieveeditor_SOURCE_DIR} ${sieveeditor_BINARY_DIR})
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050e00)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054400)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054500)
endif()
if(BUILD_TESTING)
......
......@@ -23,6 +23,8 @@
#include <KBookmarkManager>
#include <KBookmarkMenu>
#include <QDir>
#include <KActionCollection>
#include <QMenu>
SieveEditorBookmarks::SieveEditorBookmarks(SieveEditorMainWindow *mainWindow, KActionCollection *collection, QMenu *menu, QObject *parent)
: QObject(parent)
......@@ -41,7 +43,8 @@ SieveEditorBookmarks::SieveEditorBookmarks(SieveEditorMainWindow *mainWindow, KA
KBookmarkManager *manager = KBookmarkManager::managerForFile(bookmarkFile, QStringLiteral("sieveeditor"));
manager->setUpdate(true);
mBookmarkMenu = new KBookmarkMenu(manager, this, mMenu, collection);
mBookmarkMenu = new KBookmarkMenu(manager, this, mMenu);
collection->addActions(mMenu->actions());
}
SieveEditorBookmarks::~SieveEditorBookmarks()
......
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