Port a foreach

wilder-5.22
Nicolas Fella 5 years ago
parent 2a81512f0c
commit 773be564f2
  1. 4
      shell/containmentconfigview.cpp

@ -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());
}

Loading…
Cancel
Save