when no channel selected display default channel logo.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2967 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-05-21 15:50:29 +00:00
parent df6dfd9f3c
commit 4d99495361

View File

@ -685,6 +685,7 @@ void ChannelFeed::updateChannelMsgs()
subscribeButton->setEnabled(false);
unsubscribeButton->setEnabled(false);
nameLabel->setText("No Channel Selected");
iconLabel->setPixmap(QPixmap(":/images/channels.png"));
iconLabel->setEnabled(false);
return;
}
@ -694,9 +695,11 @@ void ChannelFeed::updateChannelMsgs()
QPixmap chanImage;
chanImage.loadFromData(ci.pngChanImage, ci.pngImageLen, "PNG");
iconLabel->setPixmap(chanImage);
iconLabel->setStyleSheet("QLabel{border: 3px solid white;}");
}else{
QPixmap defaulImage(CHAN_DEFAULT_IMAGE);
iconLabel->setPixmap(defaulImage);
iconLabel->setStyleSheet("QLabel{border: 2px solid white;border-radius: 10px;}");
}
iconLabel->setEnabled(true);