1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-03-09 20:01:08 +00:00

- Remove useless code

This commit is contained in:
Christophe Dumez 2009-08-23 13:26:16 +00:00
parent 46c6c4fc9a
commit 3550e31871
2 changed files with 3 additions and 8 deletions

View File

@ -247,7 +247,7 @@ void RSSImp::renameFiles() {
// Rename item
rss_item->rename(newName);
// Update TreeWidget
item->setText(0, newName+ QString(" (")+QString::number(rss_item->getNbUnRead())+QString(")"));
updateItemInfos(item);
}
}
@ -379,7 +379,8 @@ void RSSImp::refreshTextBrowser(QListWidgetItem *item) {
article->setRead();
item->setData(Qt::ForegroundRole, QVariant(QColor("grey")));
item->setData(Qt::DecorationRole, QVariant(QIcon(":/Icons/sphere.png")));
updateFeedNbNews(stream);
// Decrement feed nb unread news
updateItemInfos(listStreams->currentFeed());
}
void RSSImp::saveSlidersPosition() {
@ -421,11 +422,6 @@ void RSSImp::updateFeedIcon(QString url, QString icon_path){
item->setData(0,Qt::DecorationRole, QVariant(QIcon(icon_path)));
}
void RSSImp::updateFeedNbNews(RssStream* stream){
QTreeWidgetItem *item = listStreams->getTreeItemFromUrl(stream->getUrl());
item->setText(0, stream->getName() + QString::fromUtf8(" (") + QString::number(stream->getNbUnRead(), 10)+ QString(")"));
}
void RSSImp::updateFeedInfos(QString url, QString aliasOrUrl, unsigned int nbUnread){
QTreeWidgetItem *item = listStreams->getTreeItemFromUrl(url);
RssStream *stream = (RssStream*)listStreams->getRSSItem(item);

View File

@ -69,7 +69,6 @@ protected slots:
void downloadTorrent();
void fillFeedsList(QTreeWidgetItem *parent=0, RssFolder *rss_parent=0);
void selectFirstFeed();
void updateFeedNbNews(RssStream* stream);
void saveSlidersPosition();
void restoreSlidersPosition();
void showFeedDownloader();