Commit b8e48356 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port from listContainmentActionsInfo to listContainmentActionsMetaData

The former is deprecated.
parent 773be564
......@@ -82,13 +82,13 @@ PlasmaQuick::ConfigModel *ContainmentConfigView::containmentActionConfigModel()
if (!m_containmentActionConfigModel) {
m_containmentActionConfigModel = new PlasmaQuick::ConfigModel(this);
const KPluginInfo::List actions = Plasma::PluginLoader::self()->listContainmentActionsInfo(QString());
const QVector<KPluginMetaData> actions = Plasma::PluginLoader::self()->listContainmentActionsMetaData(QString());
KPackage::Package pkg = KPackage::PackageLoader::self()->loadPackage(QStringLiteral("Plasma/Generic"));
for (const KPluginInfo &info : actions) {
for (const KPluginMetaData &plugin : actions) {
pkg.setDefaultPackageRoot(QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral(PLASMA_RELATIVE_DATA_INSTALL_DIR "/containmentactions"), QStandardPaths::LocateDirectory));
m_containmentActionConfigModel->appendCategory(info.icon(), info.name(), pkg.filePath("ui", QStringLiteral("config.qml")), info.pluginName());
m_containmentActionConfigModel->appendCategory(plugin.iconName(), plugin.name(), pkg.filePath("ui", QStringLiteral("config.qml")), plugin.pluginId());
}
}
......
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