set a minimum size for Forum items and set a Foreground Text color.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3172 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-06-19 22:21:31 +00:00
parent 051ce984ed
commit 69bba330ac

View File

@ -175,24 +175,32 @@ ForumsDialog::ForumsDialog(QWidget *parent)
YourForums->setText(0, tr("Your Forums"));
YourForums->setFont(0, m_ItemFont);
YourForums->setIcon(0,(QIcon(IMAGE_FOLDER)));
YourForums->setSizeHint(0, QSize( 18,18 ) );
YourForums->setForeground(0, QBrush(QColor(79, 79, 79)));
TopList.append(YourForums);
SubscribedForums = new QTreeWidgetItem((QTreeWidget*)0);
SubscribedForums->setText(0, tr("Subscribed Forums"));
SubscribedForums->setFont(0, m_ItemFont);
SubscribedForums->setIcon(0,(QIcon(IMAGE_FOLDERRED)));
SubscribedForums->setSizeHint(0, QSize( 18,18 ) );
SubscribedForums->setForeground(0, QBrush(QColor(79, 79, 79)));
TopList.append(SubscribedForums);
PopularForums = new QTreeWidgetItem();
PopularForums->setText(0, tr("Popular Forums"));
PopularForums->setFont(0, m_ItemFont);
PopularForums->setIcon(0,(QIcon(IMAGE_FOLDERGREEN)));
PopularForums->setSizeHint(0, QSize( 18,18 ) );
PopularForums->setForeground(0, QBrush(QColor(79, 79, 79)));
TopList.append(PopularForums);
OtherForums = new QTreeWidgetItem();
OtherForums->setText(0, tr("Other Forums"));
OtherForums->setFont(0, m_ItemFont);
OtherForums->setIcon(0,(QIcon(IMAGE_FOLDERYELLOW)));
OtherForums->setSizeHint(0, QSize( 18,18 ) );
OtherForums->setForeground(0, QBrush(QColor(79, 79, 79)));
TopList.append(OtherForums);
ui.forumTreeWidget->addTopLevelItems(TopList);