Merge pull request #11739 from Chocobo1/qt5_14

Migrate away from deprecated API in Qt 5.14
This commit is contained in:
Mike Tzou
2019-12-26 12:43:04 +08:00
committed by GitHub
8 changed files with 38 additions and 9 deletions

View File

@@ -246,7 +246,7 @@ void TorrentsController::infoAction()
const bool reverse {parseBool(params()["reverse"], false)};
int limit {params()["limit"].toInt()};
int offset {params()["offset"].toInt()};
const QStringSet hashSet {params()["hashes"].split('|', QString::SkipEmptyParts).toSet()};
const QStringSet hashSet {List::toSet(params()["hashes"].split('|', QString::SkipEmptyParts))};
QVariantList torrentList;
TorrentFilter torrentFilter(filter, (hashSet.isEmpty() ? TorrentFilter::AnyHash : hashSet), category);