mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-30 09:56:14 -05:00
* 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:
parent
6dfa252bf6
commit
ea1cfe0c7d
@ -139,10 +139,10 @@ ChannelFeed::ChannelFeed(QWidget *parent)
|
||||
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);
|
||||
@ -160,6 +160,13 @@ ChannelFeed::ChannelFeed(QWidget *parent)
|
||||
|
||||
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);
|
||||
|
@ -104,6 +104,7 @@ private:
|
||||
std::list<ChanMsgItem *> mChanMsgItems;
|
||||
|
||||
QFont mChannelFont;
|
||||
QFont itemFont;
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user