mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-09 14:52:28 -04:00
added group icon support for blogs and channels
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2905 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
27895d1781
commit
26a808b3e7
6 changed files with 175 additions and 35 deletions
|
@ -43,6 +43,8 @@
|
|||
#include "GeneralMsgDialog.h"
|
||||
|
||||
|
||||
#define CHAN_DEFAULT_IMAGE ":/images/channels.png"
|
||||
|
||||
/****
|
||||
* #define CHAN_DEBUG
|
||||
***/
|
||||
|
@ -655,8 +657,17 @@ void ChannelFeed::updateChannelMsgs()
|
|||
return;
|
||||
}
|
||||
|
||||
if(ci.pngImageLen != 0){
|
||||
|
||||
QPixmap chanImage;
|
||||
chanImage.loadFromData(ci.pngChanImage, ci.pngImageLen, "PNG");
|
||||
iconLabel->setPixmap(chanImage);
|
||||
}else{
|
||||
QPixmap defaulImage(CHAN_DEFAULT_IMAGE);
|
||||
iconLabel->setPixmap(defaulImage);
|
||||
}
|
||||
iconLabel->setEnabled(true);
|
||||
|
||||
|
||||
/* set textcolor for Channel name */
|
||||
QString channelStr("<span style=\"font-size:22pt; font-weight:500;"
|
||||
"color:#4F4F4F;\">%1</span>");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue