mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 05:39:11 -04:00
Changes for thumbnail display & subcribe buttons
* Changes for Thumbnail display & subscribe buttons * Display Poster thumbnails without wasted empty space *Display the thumbnail as Poster, 1:1 or 16:9 format *Moved the Subscribe buttons to the left
This commit is contained in:
parent
f7b56ca340
commit
d089762e12
5 changed files with 81 additions and 65 deletions
|
@ -392,9 +392,21 @@ void GxsChannelPostItem::fill()
|
|||
|
||||
if(mPost.mThumbnail.mData != NULL)
|
||||
{
|
||||
QPixmap thumbnail;
|
||||
QPixmap thumbnail;
|
||||
|
||||
GxsIdDetails::loadPixmapFromData(mPost.mThumbnail.mData, mPost.mThumbnail.mSize, thumbnail,GxsIdDetails::ORIGINAL);
|
||||
// Wiping data - as its been passed to thumbnail.
|
||||
if( thumbnail.width() < 90 ){
|
||||
ui->logoLabel->setMaximumSize(82,108);
|
||||
}
|
||||
else if( thumbnail.width() < 109 ){
|
||||
ui->logoLabel->setMinimumSize(108,108);
|
||||
ui->logoLabel->setMaximumSize(108,108);
|
||||
}
|
||||
else{
|
||||
ui->logoLabel->setMinimumSize(156,108);
|
||||
ui->logoLabel->setMaximumSize(156,108);
|
||||
}
|
||||
ui->logoLabel->setPixmap(thumbnail);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue