Port away from deprecated QSet<>::fromList
GIT_SILENT
This commit is contained in:
parent
d6f15e9f2b
commit
68984d91f7
@ -607,7 +607,11 @@ QStringList PluginLoader::listAppletCategories(const QString &parentApp, bool vi
|
||||
|
||||
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);
|
||||
#endif
|
||||
}
|
||||
|
||||
QStringList PluginLoader::customAppletCategories() const
|
||||
|
Loading…
Reference in New Issue
Block a user