Browse Source

Cosmetic changes to the article previewx tree

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
9c13ed2635
  1. 4
      src/rss/automatedrssdownloader.cpp

4
src/rss/automatedrssdownloader.cpp

@ -454,6 +454,10 @@ void AutomatedRssDownloader::addFeedArticlesToTree(const RssFeed *feed, const QS
// If there is none, create it // If there is none, create it
if(!treeFeedItem) { if(!treeFeedItem) {
treeFeedItem = new QTreeWidgetItem(QStringList() << feed->getName()); treeFeedItem = new QTreeWidgetItem(QStringList() << feed->getName());
QFont f = treeFeedItem->font(0);
f.setBold(true);
treeFeedItem->setFont(0, f);
treeFeedItem->setData(0, Qt::DecorationRole, QIcon(":/Icons/oxygen/folder.png"));
treeFeedItem->setData(0, Qt::UserRole, feed->getUrl()); treeFeedItem->setData(0, Qt::UserRole, feed->getUrl());
ui->treeMatchingArticles->addTopLevelItem(treeFeedItem); ui->treeMatchingArticles->addTopLevelItem(treeFeedItem);
} }

Loading…
Cancel
Save