mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 08:29:26 -05:00
Fixed Avatar issue on comments feeds to have a good quality
This commit is contained in:
parent
a4ad9c6467
commit
e258058f4d
@ -432,7 +432,7 @@ void BoardsCommentsItem::setComment(const RsGxsComment& cmt)
|
|||||||
QPixmap pixmap;
|
QPixmap pixmap;
|
||||||
|
|
||||||
if(idDetails.mAvatar.mSize == 0 || !GxsIdDetails::loadPixmapFromData(idDetails.mAvatar.mData, idDetails.mAvatar.mSize, pixmap,GxsIdDetails::SMALL))
|
if(idDetails.mAvatar.mSize == 0 || !GxsIdDetails::loadPixmapFromData(idDetails.mAvatar.mData, idDetails.mAvatar.mSize, pixmap,GxsIdDetails::SMALL))
|
||||||
pixmap = GxsIdDetails::makeDefaultIcon(cmt.mMeta.mAuthorId,GxsIdDetails::SMALL);
|
pixmap = GxsIdDetails::makeDefaultIcon(cmt.mMeta.mAuthorId,GxsIdDetails::LARGE);
|
||||||
ui->avatarLabel->setPixmap(pixmap);
|
ui->avatarLabel->setPixmap(pixmap);
|
||||||
|
|
||||||
emit sizeChanged(this);
|
emit sizeChanged(this);
|
||||||
|
@ -317,7 +317,7 @@ void ChannelsCommentsItem::loadMessage()
|
|||||||
QPixmap pixmap ;
|
QPixmap pixmap ;
|
||||||
|
|
||||||
if(idDetails.mAvatar.mSize == 0 || !GxsIdDetails::loadPixmapFromData(idDetails.mAvatar.mData, idDetails.mAvatar.mSize, pixmap,GxsIdDetails::SMALL))
|
if(idDetails.mAvatar.mSize == 0 || !GxsIdDetails::loadPixmapFromData(idDetails.mAvatar.mData, idDetails.mAvatar.mSize, pixmap,GxsIdDetails::SMALL))
|
||||||
pixmap = GxsIdDetails::makeDefaultIcon(cmt.mMeta.mAuthorId,GxsIdDetails::SMALL);
|
pixmap = GxsIdDetails::makeDefaultIcon(cmt.mMeta.mAuthorId,GxsIdDetails::LARGE);
|
||||||
ui->avatarLabel->setPixmap(pixmap);
|
ui->avatarLabel->setPixmap(pixmap);
|
||||||
|
|
||||||
//Change this item to be uploaded with thread element.
|
//Change this item to be uploaded with thread element.
|
||||||
|
Loading…
Reference in New Issue
Block a user