Commit 773be564 authored by Nicolas Fella's avatar Nicolas Fella

Port a foreach

parent 2a81512f
......@@ -82,11 +82,11 @@ PlasmaQuick::ConfigModel *ContainmentConfigView::containmentActionConfigModel()
if (!m_containmentActionConfigModel) {
m_containmentActionConfigModel = new PlasmaQuick::ConfigModel(this);
KPluginInfo::List actions = Plasma::PluginLoader::self()->listContainmentActionsInfo(QString());
const KPluginInfo::List actions = Plasma::PluginLoader::self()->listContainmentActionsInfo(QString());
KPackage::Package pkg = KPackage::PackageLoader::self()->loadPackage(QStringLiteral("Plasma/Generic"));
foreach (const KPluginInfo &info, actions) {
for (const KPluginInfo &info : 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());
}
......
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