mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-23 14:39:34 -05:00
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:
parent
a7c1b9f31c
commit
8b7045f1c2
@ -167,6 +167,12 @@ ChannelFeed::ChannelFeed(QWidget *parent)
|
||||
item3->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);
|
||||
timer->connect(timer, SIGNAL(timeout()), this, SLOT(checkUpdate()));
|
||||
timer->start(1000);
|
||||
|
@ -465,28 +465,35 @@ void ForumsDialog::insertForums()
|
||||
}
|
||||
}
|
||||
|
||||
itemFont = QFont("ARIAL", 10);
|
||||
itemFont.setBold(true);
|
||||
|
||||
/* now we can add them in as a tree! */
|
||||
QList<QTreeWidgetItem *> TopList;
|
||||
QTreeWidgetItem *item = new QTreeWidgetItem((QTreeWidget*)0);
|
||||
item -> setText(0, tr("Your Forums"));
|
||||
item -> setFont(0,itemFont);
|
||||
item -> setIcon(0,(QIcon(IMAGE_FOLDER)));
|
||||
item -> addChildren(AdminList);
|
||||
TopList.append(item);
|
||||
|
||||
item = new QTreeWidgetItem((QTreeWidget*)0);
|
||||
item -> setText(0, tr("Subscribed Forums"));
|
||||
item -> setFont(0,itemFont);
|
||||
item -> setIcon(0,(QIcon(IMAGE_FOLDERRED)));
|
||||
item -> addChildren(SubList);
|
||||
TopList.append(item);
|
||||
|
||||
item = new QTreeWidgetItem((QTreeWidget*)0);
|
||||
item -> setText(0, tr("Popular Forums"));
|
||||
item -> setFont(0,itemFont);
|
||||
item -> setIcon(0,(QIcon(IMAGE_FOLDERGREEN)));
|
||||
item -> addChildren(PopList);
|
||||
TopList.append(item);
|
||||
|
||||
item = new QTreeWidgetItem((QTreeWidget*)0);
|
||||
item -> setText(0, tr("Other Forums"));
|
||||
item -> setFont(0,itemFont);
|
||||
item -> setIcon(0,(QIcon(IMAGE_FOLDERYELLOW)));
|
||||
item -> addChildren(OtherList);
|
||||
TopList.append(item);
|
||||
|
@ -83,6 +83,7 @@ private:
|
||||
std::string mCurrPostId;
|
||||
|
||||
QFont mForumNameFont;
|
||||
QFont itemFont;
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::ForumsDialog ui;
|
||||
|
Loading…
Reference in New Issue
Block a user