mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Improve Status Filter
replaces quadratic update operation with linear
This commit is contained in:
parent
25be00931a
commit
30319e51e5
4 changed files with 161 additions and 59 deletions
|
@ -2085,6 +2085,11 @@ QVector<Torrent *> Session::torrents() const
|
|||
return result;
|
||||
}
|
||||
|
||||
qsizetype Session::torrentsCount() const
|
||||
{
|
||||
return m_torrents.size();
|
||||
}
|
||||
|
||||
bool Session::addTorrent(const QString &source, const AddTorrentParams ¶ms)
|
||||
{
|
||||
// `source`: .torrent file path/url or magnet uri
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue