Port away from deprecated QSet<>::fromList

GIT_SILENT
This commit is contained in:
Friedrich W. H. Kossebau 2020-06-26 06:03:24 +02:00
parent d6f15e9f2b
commit 68984d91f7

View File

@ -607,7 +607,11 @@ QStringList PluginLoader::listAppletCategories(const QString &parentApp, bool vi
void PluginLoader::setCustomAppletCategories(const QStringList &categories) void PluginLoader::setCustomAppletCategories(const QStringList &categories)
{ {
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
PluginLoaderPrivate::s_customCategories = QSet<QString>(categories.begin(), categories.end());
#else
PluginLoaderPrivate::s_customCategories = QSet<QString>::fromList(categories); PluginLoaderPrivate::s_customCategories = QSet<QString>::fromList(categories);
#endif
} }
QStringList PluginLoader::customAppletCategories() const QStringList PluginLoader::customAppletCategories() const