diff --git a/src/app/application.cpp b/src/app/application.cpp index 3c122bf86..be915ebbc 100644 --- a/src/app/application.cpp +++ b/src/app/application.cpp @@ -296,7 +296,7 @@ void Application::runExternalProgram(const BitTorrent::TorrentHandle *torrent) c program.replace("%N", torrent->name()); program.replace("%L", torrent->category()); - QStringList tags = torrent->tags().toList(); + QStringList tags = torrent->tags().values(); std::sort(tags.begin(), tags.end(), Utils::String::naturalLessThan); program.replace("%G", tags.join(',')); diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index c4fd93720..f48498060 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -726,7 +726,7 @@ bool Session::addTag(const QString &tag) if (!hasTag(tag)) { m_tags.insert(tag); - m_storedTags = m_tags.toList(); + m_storedTags = m_tags.values(); emit tagAdded(tag); return true; } @@ -738,7 +738,7 @@ bool Session::removeTag(const QString &tag) if (m_tags.remove(tag)) { for (TorrentHandle *const torrent : asConst(torrents())) torrent->removeTag(tag); - m_storedTags = m_tags.toList(); + m_storedTags = m_tags.values(); emit tagRemoved(tag); return true; } @@ -3752,7 +3752,7 @@ void Session::startUpTorrents() } if (!queue.empty()) - fastresumes = queue + fastresumes.toSet().subtract(queue.toSet()).toList(); + fastresumes = queue + fastresumes.toSet().subtract(queue.toSet()).values(); } for (const QString &fastresumeName : asConst(fastresumes)) { diff --git a/src/base/search/searchpluginmanager.cpp b/src/base/search/searchpluginmanager.cpp index ce0a777a3..77520c35b 100644 --- a/src/base/search/searchpluginmanager.cpp +++ b/src/base/search/searchpluginmanager.cpp @@ -157,7 +157,7 @@ QStringList SearchPluginManager::getPluginCategories(const QString &pluginName) categories << category; } - return categories.toList(); + return categories.values(); } PluginInfo *SearchPluginManager::pluginInfo(const QString &name) const diff --git a/src/gui/downloadfromurldialog.cpp b/src/gui/downloadfromurldialog.cpp index ebd6b8d43..02e380926 100644 --- a/src/gui/downloadfromurldialog.cpp +++ b/src/gui/downloadfromurldialog.cpp @@ -79,7 +79,7 @@ DownloadFromURLDialog::DownloadFromURLDialog(QWidget *parent) if (isDownloadable(str)) uniqueURLs << str; } - m_ui->textUrls->setText(uniqueURLs.toList().join('\n')); + m_ui->textUrls->setText(uniqueURLs.values().join('\n')); Utils::Gui::resize(this); show(); @@ -108,6 +108,6 @@ void DownloadFromURLDialog::downloadButtonClicked() return; } - emit urlsReadyToBeDownloaded(uniqueURLs.toList()); + emit urlsReadyToBeDownloaded(uniqueURLs.values()); accept(); } diff --git a/src/gui/transferlistmodel.cpp b/src/gui/transferlistmodel.cpp index 99512be65..33fcdeea7 100644 --- a/src/gui/transferlistmodel.cpp +++ b/src/gui/transferlistmodel.cpp @@ -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(", "); } diff --git a/src/webui/api/serialize/serialize_torrent.cpp b/src/webui/api/serialize/serialize_torrent.cpp index 14c7935bc..fd77c8132 100644 --- a/src/webui/api/serialize/serialize_torrent.cpp +++ b/src/webui/api/serialize/serialize_torrent.cpp @@ -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())},