set default textcolor for channel items

set default Font for Forum items

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1655 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-09-16 00:01:09 +00:00
parent a7c1b9f31c
commit 8b7045f1c2
3 changed files with 14 additions and 0 deletions

View File

@ -167,6 +167,12 @@ ChannelFeed::ChannelFeed(QWidget *parent)
item3->setFont(itemFont); item3->setFont(itemFont);
item4->setFont(itemFont); item4->setFont(itemFont);
item1->setForeground(QBrush(QColor(79, 79, 79)));
item2->setForeground(QBrush(QColor(79, 79, 79)));
item3->setForeground(QBrush(QColor(79, 79, 79)));
item4->setForeground(QBrush(QColor(79, 79, 79)));
QTimer *timer = new QTimer(this); QTimer *timer = new QTimer(this);
timer->connect(timer, SIGNAL(timeout()), this, SLOT(checkUpdate())); timer->connect(timer, SIGNAL(timeout()), this, SLOT(checkUpdate()));
timer->start(1000); timer->start(1000);

View File

@ -465,28 +465,35 @@ void ForumsDialog::insertForums()
} }
} }
itemFont = QFont("ARIAL", 10);
itemFont.setBold(true);
/* now we can add them in as a tree! */ /* now we can add them in as a tree! */
QList<QTreeWidgetItem *> TopList; QList<QTreeWidgetItem *> TopList;
QTreeWidgetItem *item = new QTreeWidgetItem((QTreeWidget*)0); QTreeWidgetItem *item = new QTreeWidgetItem((QTreeWidget*)0);
item -> setText(0, tr("Your Forums")); item -> setText(0, tr("Your Forums"));
item -> setFont(0,itemFont);
item -> setIcon(0,(QIcon(IMAGE_FOLDER))); item -> setIcon(0,(QIcon(IMAGE_FOLDER)));
item -> addChildren(AdminList); item -> addChildren(AdminList);
TopList.append(item); TopList.append(item);
item = new QTreeWidgetItem((QTreeWidget*)0); item = new QTreeWidgetItem((QTreeWidget*)0);
item -> setText(0, tr("Subscribed Forums")); item -> setText(0, tr("Subscribed Forums"));
item -> setFont(0,itemFont);
item -> setIcon(0,(QIcon(IMAGE_FOLDERRED))); item -> setIcon(0,(QIcon(IMAGE_FOLDERRED)));
item -> addChildren(SubList); item -> addChildren(SubList);
TopList.append(item); TopList.append(item);
item = new QTreeWidgetItem((QTreeWidget*)0); item = new QTreeWidgetItem((QTreeWidget*)0);
item -> setText(0, tr("Popular Forums")); item -> setText(0, tr("Popular Forums"));
item -> setFont(0,itemFont);
item -> setIcon(0,(QIcon(IMAGE_FOLDERGREEN))); item -> setIcon(0,(QIcon(IMAGE_FOLDERGREEN)));
item -> addChildren(PopList); item -> addChildren(PopList);
TopList.append(item); TopList.append(item);
item = new QTreeWidgetItem((QTreeWidget*)0); item = new QTreeWidgetItem((QTreeWidget*)0);
item -> setText(0, tr("Other Forums")); item -> setText(0, tr("Other Forums"));
item -> setFont(0,itemFont);
item -> setIcon(0,(QIcon(IMAGE_FOLDERYELLOW))); item -> setIcon(0,(QIcon(IMAGE_FOLDERYELLOW)));
item -> addChildren(OtherList); item -> addChildren(OtherList);
TopList.append(item); TopList.append(item);

View File

@ -83,6 +83,7 @@ private:
std::string mCurrPostId; std::string mCurrPostId;
QFont mForumNameFont; QFont mForumNameFont;
QFont itemFont;
/** Qt Designer generated object */ /** Qt Designer generated object */
Ui::ForumsDialog ui; Ui::ForumsDialog ui;