mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-18 04:14:28 -05:00
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:
parent
df6dfd9f3c
commit
4d99495361
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user