mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-09 07:40:19 +08:00
rss : another improvements
This commit is contained in:
parent
2ce51400aa
commit
191ac5eeac
@ -171,6 +171,8 @@
|
||||
new QListWidgetItem(currentstream->getItem(i)->getTitle(), listNews);
|
||||
if(currentstream->getItem(i)->isRead())
|
||||
listNews->item(i)->setData(Qt::ForegroundRole, QVariant(QColor("grey")));
|
||||
if(i%2==0)
|
||||
listNews->item(i)->setData(Qt::BackgroundRole, QVariant(QColor(0, 255, 255, 20)));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -179,7 +181,7 @@
|
||||
void RSSImp::refreshTextBrowser() {
|
||||
if(listStreams->currentRow()>=0 && listNews->currentRow()>=0) {
|
||||
RssItem* currentitem = rssmanager.getStream(listStreams->currentRow())->getItem(listNews->currentRow());
|
||||
textBrowser->setHtml(currentitem->getTitle()+" : \n"+currentitem->getDescription());
|
||||
textBrowser->setHtml(currentitem->getTitle()+" : \n"+currentitem->getDescription()+"\n"+currentitem->getImage());
|
||||
currentitem->setRead();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user