set minimum size for channel items to 22 for bether display and moved Post Button to top header

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2934 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-05-17 21:20:11 +00:00
parent f7305de302
commit bea26895ef
2 changed files with 46 additions and 56 deletions

View file

@ -385,6 +385,7 @@ void ChannelFeed::updateChannelListOwn(std::list<std::string> &ids)
QStandardItem *chNameItem = new QStandardItem();
QStandardItem *chPopItem = new QStandardItem();
QStandardItem *chIdItem = new QStandardItem();
chNameItem->setSizeHint( QSize( 22,22 ) );
ChannelInfo ci;
if (rsChannels && rsChannels->getChannelInfo(*iit, ci)) {
@ -459,6 +460,7 @@ void ChannelFeed::updateChannelListSub(std::list<std::string> &ids)
QStandardItem *chNameItem = new QStandardItem();
QStandardItem *chPopItem = new QStandardItem();
QStandardItem *chIdItem = new QStandardItem();
chNameItem->setSizeHint( QSize( 22,22 ) );
ChannelInfo ci;
if (rsChannels && rsChannels->getChannelInfo(*iit, ci)) {
@ -495,7 +497,8 @@ void ChannelFeed::updateChannelListSub(std::list<std::string> &ids)
{
chPopItem->setData(QIcon(QString::fromUtf8(":/images/hot_3.png")), Qt::DecorationRole);
}
else if (popcount < 16) {
else if (popcount < 16)
{
chPopItem->setData(QIcon(QString::fromUtf8(":/images/hot_4.png")), Qt::DecorationRole);
}
else
@ -534,6 +537,7 @@ void ChannelFeed::updateChannelListPop(std::list<std::string> &ids)
QStandardItem *chNameItem = new QStandardItem();
QStandardItem *chPopItem = new QStandardItem();
QStandardItem *chIdItem = new QStandardItem();
chNameItem->setSizeHint( QSize( 22,22 ) );
ChannelInfo ci;
if (rsChannels && rsChannels->getChannelInfo(*iit, ci)) {