Commit 8f51724d authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

KFileItemActions::addOpenWithActionsTo to insertOpenWithActionsTo

Convert depreciated method in KF 5.82
parent 0243c0d3
......@@ -30,6 +30,8 @@
#include <KMessageBox>
#include <KShell>
#include <kwindowsystem_version.h>
#include "konsoledebug.h"
#include "KonsoleSettings.h"
#include "profile/Profile.h"
......@@ -182,7 +184,11 @@ void FileFilterHotSpot::setupMenu(QMenu *menu)
const KFileItemListProperties itemProperties(itemList);
_menuActions.setParent(this);
_menuActions.setItemListProperties(itemProperties);
#if KWINDOWSYSTEM_VERSION < QT_VERSION_CHECK(5,82,0)
_menuActions.addOpenWithActionsTo(menu);
#else
_menuActions.insertOpenWithActionsTo(nullptr, menu, QStringList());
#endif
// Here we added the actions to the last part of the menu, but we need to move them up.
// TODO: As soon as addOpenWithActionsTo accepts a index, change this.
......
Supports Markdown
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