Changed the color for the posts in ForumsDialog.

- unread posts = black + bold
- read parent posts of unread posts = gray + bold
- read posts = gray

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3789 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-11-13 22:42:20 +00:00
parent 734301c2bc
commit 624aef2065

View File

@ -844,7 +844,20 @@ void ForumsDialog::CalculateIconsAndFonts(QTreeWidgetItem *pItem, bool &bHasRead
// set font
for (int i = 0; i < COLUMN_THREAD_COUNT; i++) {
QFont qf = pItem->font(i);
qf.setBold(bUnread || bMyUnreadChilddren);
if (m_bIsForumSubscribed == false) {
qf.setBold(false);
pItem->setTextColor(i, Qt::black);
} else if (bUnread) {
qf.setBold(true);
pItem->setTextColor(i, Qt::black);
} else if (bMyUnreadChilddren) {
qf.setBold(true);
pItem->setTextColor(i, Qt::gray);
} else {
qf.setBold(false);
pItem->setTextColor(i, Qt::gray);
}
pItem->setFont(i, qf);
}