Port deprecated QSet::toList method
This commit is contained in:
parent
6756d00fba
commit
d345bdd87f
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user