┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings/contextmenu
diff options
context:
space:
mode:
authorAhmad Samir <[email protected]>2022-05-06 18:15:33 +0200
committerAhmad Samir <[email protected]>2022-05-31 14:25:13 +0000
commitd2f8c4f0641ec4218ee5c7d32b2e3b5319a27f32 (patch)
tree905df8709bede7176d962353702deeebee9c6e6a /src/settings/contextmenu
parent00c26fb39004883e0ef63cc6313a2e9538503cd7 (diff)
KServiceTypeTrader has been deprecated since KService 5.90
Diffstat (limited to 'src/settings/contextmenu')
-rw-r--r--src/settings/contextmenu/contextmenusettingspage.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings/contextmenu/contextmenusettingspage.cpp b/src/settings/contextmenu/contextmenusettingspage.cpp
index 165007ec8..acf80d195 100644
--- a/src/settings/contextmenu/contextmenusettingspage.cpp
+++ b/src/settings/contextmenu/contextmenusettingspage.cpp
@@ -23,6 +23,7 @@
#include <KServiceTypeTrader>
#include <kio_version.h>
#include <kiocore_export.h>
+#include <kservice_export.h>
#include <QtGlobal>
#include <knewstuff_version.h>
@@ -284,10 +285,14 @@ void ContextMenuSettingsPage::loadServices()
// Load generic services
const auto locations = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("kio/servicemenus"), QStandardPaths::LocateDirectory);
QStringList files = KFileUtils::findAllUniqueFiles(locations);
+
+#if KIOWIDGETS_BUILD_DEPRECATED_SINCE(5, 90)
const KService::List services = KServiceTypeTrader::self()->query(QStringLiteral("KonqPopupMenu/Plugin"));
for (const KService::Ptr &service : services) {
files << QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kservices5/" % service->entryPath());
}
+#endif
+
for (const auto &file : qAsConst(files)) {
const QList<KServiceAction> serviceActions = KDesktopFileActions::userDefinedServices(KService(file), true);