Replace deprecated Qt functions

QSet::toList() is replaced by QSet::values()
This commit is contained in:
Chocobo1 2019-10-31 12:38:11 +08:00
parent c1e0207454
commit 6fd678195c
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
6 changed files with 9 additions and 9 deletions

View file

@ -200,7 +200,7 @@ QVariant TransferListModel::data(const QModelIndex &index, const int role) const
case TR_CATEGORY:
return torrent->category();
case TR_TAGS: {
QStringList tagsList = torrent->tags().toList();
QStringList tagsList = torrent->tags().values();
tagsList.sort();
return tagsList.join(", ");
}