mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
- UpdateSelectedItems() now sets loading.png icon for all feeds included in selected folders
This commit is contained in:
parent
e126de8ff5
commit
46c6c4fc9a
3 changed files with 28 additions and 8 deletions
|
@ -50,6 +50,20 @@ public:
|
|||
return feeds_items.values();
|
||||
}
|
||||
|
||||
QList<QTreeWidgetItem*> getAllFeedItems(QTreeWidgetItem* folder) {
|
||||
QList<QTreeWidgetItem*> feeds;
|
||||
int nbChildren = folder->childCount();
|
||||
for(int i=0; i<nbChildren; ++i) {
|
||||
QTreeWidgetItem *item = folder->child(i);
|
||||
if(getItemType(item) == RssFile::STREAM) {
|
||||
feeds << item;
|
||||
} else {
|
||||
feeds.append(getAllFeedItems(item));
|
||||
}
|
||||
}
|
||||
return feeds;
|
||||
}
|
||||
|
||||
RssFile* getRSSItem(QTreeWidgetItem *item) {
|
||||
return mapping[item];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue