Fix compile with Qt 5.14 and above

This commit is contained in:
Jonas Kvinge
2019-12-30 02:28:54 +01:00
parent 0e12c8249e
commit 8818f24114
3 changed files with 3 additions and 3 deletions

View File

@@ -464,7 +464,7 @@ void CollectionView::ShowInVarious(bool on) {
}
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
for (const QString &album : QSet<QString>(albums.begin(), albums.end())) {
for (const QString &album : QSet<QString>(albums.keyBegin(), albums.keyEnd())) {
#else
for (const QString &album : QSet<QString>::fromList(albums.keys())) {
#endif