Improve Torrent content tree structure creation

Use QHash to cache folder items.
PR #16183.
This commit is contained in:
Prince Gupta
2022-01-24 08:25:06 +05:30
committed by GitHub
parent 43c427b253
commit 0cc318664d
3 changed files with 5 additions and 15 deletions

View File

@@ -59,7 +59,6 @@ public:
const QVector<TorrentContentModelItem*> &children() const;
void appendChild(TorrentContentModelItem *item);
TorrentContentModelItem *child(int row) const;
TorrentContentModelFolder *childFolderWithName(const QString &name) const;
int childCount() const;
private: