From d345bdd87f505d044971f308f0d450786615e129 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Thu, 19 Dec 2019 13:55:07 +0100 Subject: [PATCH] Port deprecated QSet::toList method --- src/plasma/pluginloader.cpp | 4 ++-- src/plasma/private/theme_p.cpp | 2 +- src/plasma/theme.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plasma/pluginloader.cpp b/src/plasma/pluginloader.cpp index f4fc21f8d..b5064aa4e 100644 --- a/src/plasma/pluginloader.cpp +++ b/src/plasma/pluginloader.cpp @@ -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) diff --git a/src/plasma/private/theme_p.cpp b/src/plasma/private/theme_p.cpp index 67fecc6bc..804d1662a 100644 --- a/src/plasma/private/theme_p.cpp +++ b/src/plasma/private/theme_p.cpp @@ -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 diff --git a/src/plasma/theme.cpp b/src/plasma/theme.cpp index 511064b89..58bb7a15d 100644 --- a/src/plasma/theme.cpp +++ b/src/plasma/theme.cpp @@ -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);