mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Migrate away from deprecated API in Qt 5.14
This commit is contained in:
parent
18de63f743
commit
2422d81de1
7 changed files with 37 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue