From d56bf246de5651606a7ac59d941d72001c2af1e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Wed, 10 Jul 2013 03:27:19 +0200 Subject: [PATCH] Port PluginLoader from KStandardDirs to QStandardPaths --- src/plasma/pluginloader.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plasma/pluginloader.cpp b/src/plasma/pluginloader.cpp index 671140a8c..df719b065 100644 --- a/src/plasma/pluginloader.cpp +++ b/src/plasma/pluginloader.cpp @@ -19,10 +19,11 @@ #include "pluginloader.h" +#include + #include #include #include -#include #include #include @@ -818,7 +819,9 @@ KPluginInfo::List PluginLoader::internalContainmentActionsInfo() const static KPluginInfo::List standardInternalInfo(const QString &type, const QString &category = QString()) { - QStringList files = KGlobal::dirs()->findAllResources("appdata", "plasma/internal/" + type + "/*.desktop", KStandardDirs::NoDuplicates); + QStringList files = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, + "plasma/internal/" + type + "/*.desktop", + QStandardPaths::LocateFile); KPluginInfo::List allInfo = KPluginInfo::fromFiles(files);