Port deprecated QSet::toList method

This commit is contained in:
Laurent Montel 2019-12-19 13:55:07 +01:00
parent 6756d00fba
commit d345bdd87f
3 changed files with 4 additions and 4 deletions

View File

@ -605,7 +605,7 @@ void PluginLoader::setCustomAppletCategories(const QStringList &categories)
QStringList PluginLoader::customAppletCategories() const
{
return PluginLoaderPrivate::s_customCategories.toList();
return PluginLoaderPrivate::s_customCategories.values();
}
QString PluginLoader::appletCategory(const QString &appletName)
@ -679,7 +679,7 @@ QStringList PluginLoader::listContainmentTypes()
}
}
return types.toList();
return types.values();
}
KPluginInfo::List PluginLoader::listDataEngineInfo(const QString &parentApp)

View File

@ -615,7 +615,7 @@ void ThemePrivate::saveSvgElementsCache()
while (it.hasNext()) {
it.next();
KConfigGroup imageGroup(svgElementsCache, it.key());
imageGroup.writeEntry("invalidElements", it.value().toList()); //FIXME: add QSet support to KConfig
imageGroup.writeEntry("invalidElements", it.value().values()); //FIXME: add QSet support to KConfig
}
//Pretty drastic, but this is executed only very rarely

View File

@ -427,7 +427,7 @@ void Theme::releaseRectsCache(const QString &image)
if (it != d->invalidElements.end()) {
if (d->useCache()) {
KConfigGroup imageGroup(d->svgElementsCache, it.key());
imageGroup.writeEntry("invalidElements", it.value().toList());
imageGroup.writeEntry("invalidElements", it.value().values());
}
d->invalidElements.erase(it);