summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edmundson <[email protected]>2016-10-07 01:19:03 +0100
committerDavid Edmundson <[email protected]>2016-10-07 01:19:03 +0100
commita3b50ffff65de0b1cccb60009bc65fe38f0381fd (patch)
treee98fc07eee5295840a31d364734a295c80c85c60
parentbc1324ceebbd71d1571d3adb51371b17391ab425 (diff)
Use Plasma::PluginLoader to list applets
Summary: PluginLoader has some additional checks for some obscure config options, such as ExcludeCategories in plasmashellrc. By doing the applet listing manually widget explorer skipped that. Test Plan: Checked widget explorer still listed everything Reviewers: #plasma, mart Reviewed By: mart Subscribers: mart, apol, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D2877
-rw-r--r--components/shellprivate/widgetexplorer/widgetexplorer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/shellprivate/widgetexplorer/widgetexplorer.cpp b/components/shellprivate/widgetexplorer/widgetexplorer.cpp
index c2b38a8..7274d04 100644
--- a/components/shellprivate/widgetexplorer/widgetexplorer.cpp
+++ b/components/shellprivate/widgetexplorer/widgetexplorer.cpp
@@ -33,6 +33,7 @@
#include <Plasma/Applet>
#include <Plasma/Corona>
#include <Plasma/Containment>
+#include <Plasma/PluginLoader>
#include <qstandardpaths.h>
#include <KActivities/Consumer>
@@ -131,10 +132,9 @@ void WidgetExplorerPrivate::initFilters()
QSet<QString> existingCategories = itemModel.categories();
//foreach (const QString &category, Plasma::Applet::listCategories(application)) {
QStringList cats;
- const QList<KPluginMetaData> list = KPackage::PackageLoader::self()->listPackages(QStringLiteral("Plasma/Applet"), QStringLiteral("plasma/plasmoids"));
+ const QList<KPluginInfo> list = PluginLoader::self()->listAppletInfo(QString());
- for (auto& data : list) {
- const KPluginInfo info(data);
+ for (auto& info : list) {
if (!info.isValid()) {
continue;
}