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
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

@ -102,7 +102,7 @@ QVariantMap serialize(const BitTorrent::TorrentHandle &torrent)
{KEY_TORRENT_FIRST_LAST_PIECE_PRIO, torrent.hasFirstLastPiecePriority()},
{KEY_TORRENT_CATEGORY, torrent.category()},
{KEY_TORRENT_TAGS, torrent.tags().toList().join(", ")},
{KEY_TORRENT_TAGS, torrent.tags().values().join(", ")},
{KEY_TORRENT_SUPER_SEEDING, torrent.superSeeding()},
{KEY_TORRENT_FORCE_START, torrent.isForced()},
{KEY_TORRENT_SAVE_PATH, Utils::Fs::toNativePath(torrent.savePath())},