From ea1cfe0c7d6db71def6e1e1b92c42d268b637dfd Mon Sep 17 00:00:00 2001 From: defnax Date: Mon, 14 Sep 2009 23:27:05 +0000 Subject: [PATCH] * 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 --- retroshare-gui/src/gui/ChannelFeed.cpp | 23 +++++++++++++++-------- retroshare-gui/src/gui/ChannelFeed.h | 1 + 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/retroshare-gui/src/gui/ChannelFeed.cpp b/retroshare-gui/src/gui/ChannelFeed.cpp index 6ef065bb7..5e441bb9a 100644 --- a/retroshare-gui/src/gui/ChannelFeed.cpp +++ b/retroshare-gui/src/gui/ChannelFeed.cpp @@ -138,11 +138,11 @@ ChannelFeed::ChannelFeed(QWidget *parent) // hide header and id column treeView->setHeaderHidden(true); treeView->hideColumn(1); - - QStandardItem *item1 = new QStandardItem("Own Channels"); - QStandardItem *item2 = new QStandardItem("Subscribed Channels"); - QStandardItem *item3 = new QStandardItem("Popular Channels"); - QStandardItem *item4 = new QStandardItem("Other Channels"); + + QStandardItem *item1 = new QStandardItem(tr("Own Channels")); + QStandardItem *item2 = new QStandardItem(tr("Subscribed Channels")); + QStandardItem *item3 = new QStandardItem(tr("Popular Channels")); + QStandardItem *item4 = new QStandardItem(tr("Other Channels")); model->appendRow(item1); model->appendRow(item2); @@ -156,10 +156,17 @@ ChannelFeed::ChannelFeed(QWidget *parent) updateChannelList(); 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); timer->connect(timer, SIGNAL(timeout()), this, SLOT(checkUpdate())); timer->start(1000); diff --git a/retroshare-gui/src/gui/ChannelFeed.h b/retroshare-gui/src/gui/ChannelFeed.h index 9d2bb8c88..0b10c5bdb 100644 --- a/retroshare-gui/src/gui/ChannelFeed.h +++ b/retroshare-gui/src/gui/ChannelFeed.h @@ -104,6 +104,7 @@ private: std::list mChanMsgItems; QFont mChannelFont; + QFont itemFont; };