- UpdateSelectedItems() now sets loading.png icon for all feeds included in selected folders

This commit is contained in:
Christophe Dumez 2009-08-23 13:20:26 +00:00
commit 46c6c4fc9a
3 changed files with 28 additions and 8 deletions

View file

@ -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];
}