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

@@ -87,7 +87,11 @@ void StandardItemIconLoader::RowsAboutToBeRemoved(const QModelIndex &parent, int
void StandardItemIconLoader::ModelReset() {
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
cover_loader_->CancelTasks(QSet<quint64>(pending_covers_.begin(), pending_covers_.end()));
#else
cover_loader_->CancelTasks(QSet<quint64>::fromList(pending_covers_.keys()));
#endif
pending_covers_.clear();
}