mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
fixed size problem in channel feed items
This commit is contained in:
parent
fd34091fbf
commit
3834939eae
@ -396,19 +396,21 @@ void GxsChannelPostItem::fill()
|
|||||||
{
|
{
|
||||||
QPixmap thumbnail;
|
QPixmap thumbnail;
|
||||||
|
|
||||||
|
ui->logoLabel->setScaledContents(true);
|
||||||
|
|
||||||
GxsIdDetails::loadPixmapFromData(mPost.mThumbnail.mData, mPost.mThumbnail.mSize, thumbnail,GxsIdDetails::ORIGINAL);
|
GxsIdDetails::loadPixmapFromData(mPost.mThumbnail.mData, mPost.mThumbnail.mSize, thumbnail,GxsIdDetails::ORIGINAL);
|
||||||
// Wiping data - as its been passed to thumbnail.
|
// Wiping data - as its been passed to thumbnail.
|
||||||
if( thumbnail.width() < 90 ){
|
// if( thumbnail.width() < 90 ){
|
||||||
ui->logoLabel->setMaximumSize(82*f,108*f);
|
// ui->logoLabel->setMaximumSize(82*f,108*f);
|
||||||
}
|
// }
|
||||||
else if( thumbnail.width() < 109 ){
|
// else if( thumbnail.width() < 109 ){
|
||||||
ui->logoLabel->setMinimumSize(108*f,108*f);
|
// ui->logoLabel->setMinimumSize(108*f,108*f);
|
||||||
ui->logoLabel->setMaximumSize(108*f,108*f);
|
// ui->logoLabel->setMaximumSize(108*f,108*f);
|
||||||
}
|
// }
|
||||||
else{
|
// else{
|
||||||
ui->logoLabel->setMinimumSize(156*f,108*f);
|
// ui->logoLabel->setMinimumSize(156*f,108*f);
|
||||||
ui->logoLabel->setMaximumSize(156*f,108*f);
|
// ui->logoLabel->setMaximumSize(156*f,108*f);
|
||||||
}
|
// }
|
||||||
ui->logoLabel->setPixmap(thumbnail);
|
ui->logoLabel->setPixmap(thumbnail);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user