Replace use of QSet::fromList with Qt 5.14 and above

This commit is contained in:
Jonas Kvinge
2019-12-21 18:22:18 +01:00
parent 6df38c389c
commit be9bf5c173
4 changed files with 17 additions and 1 deletions

View File

@@ -463,7 +463,11 @@ void CollectionView::ShowInVarious(bool on) {
}
}
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
for (const QString &album : QSet<QString>(albums.begin(), albums.end())) {
#else
for (const QString &album : QSet<QString>::fromList(albums.keys())) {
#endif
app_->collection_backend()->ForceCompilation(album, albums.values(album), on);
}