* set default Font size for Channel items

* enabled translation supports for the Channel items

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1651 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-09-14 23:27:05 +00:00
parent 6dfa252bf6
commit ea1cfe0c7d
2 changed files with 16 additions and 8 deletions

View File

@ -139,10 +139,10 @@ ChannelFeed::ChannelFeed(QWidget *parent)
treeView->setHeaderHidden(true); treeView->setHeaderHidden(true);
treeView->hideColumn(1); treeView->hideColumn(1);
QStandardItem *item1 = new QStandardItem("Own Channels"); QStandardItem *item1 = new QStandardItem(tr("Own Channels"));
QStandardItem *item2 = new QStandardItem("Subscribed Channels"); QStandardItem *item2 = new QStandardItem(tr("Subscribed Channels"));
QStandardItem *item3 = new QStandardItem("Popular Channels"); QStandardItem *item3 = new QStandardItem(tr("Popular Channels"));
QStandardItem *item4 = new QStandardItem("Other Channels"); QStandardItem *item4 = new QStandardItem(tr("Other Channels"));
model->appendRow(item1); model->appendRow(item1);
model->appendRow(item2); model->appendRow(item2);
@ -156,9 +156,16 @@ ChannelFeed::ChannelFeed(QWidget *parent)
updateChannelList(); updateChannelList();
mChannelFont = QFont("MS SANS SERIF", 22); mChannelFont = QFont("MS SANS SERIF", 22);
nameLabel->setFont(mChannelFont); nameLabel->setFont(mChannelFont);
nameLabel->setMinimumWidth(20); nameLabel->setMinimumWidth(20);
itemFont = QFont("ARIAL", 10);
itemFont.setBold(true);
item1->setFont(itemFont);
item2->setFont(itemFont);
item3->setFont(itemFont);
item4->setFont(itemFont);
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()));

View File

@ -104,6 +104,7 @@ private:
std::list<ChanMsgItem *> mChanMsgItems; std::list<ChanMsgItem *> mChanMsgItems;
QFont mChannelFont; QFont mChannelFont;
QFont itemFont;
}; };