fixed the font metrics

This commit is contained in:
defnax 2019-10-12 23:41:18 +02:00
parent 2df4a1a3e8
commit b62dbb6461

View File

@ -399,15 +399,15 @@ void GxsChannelPostItem::fill()
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*f);
ui->logoLabel->setMaximumSize(82*f,108*f);
}
else if( thumbnail.width() < 109 ){
ui->logoLabel->setMinimumSize(108,108*f);
ui->logoLabel->setMaximumSize(108,108*f);
ui->logoLabel->setMinimumSize(108*f,108*f);
ui->logoLabel->setMaximumSize(108*f,108*f);
}
else{
ui->logoLabel->setMinimumSize(156,108*f);
ui->logoLabel->setMaximumSize(156,108*f);
ui->logoLabel->setMinimumSize(156*f,108*f);
ui->logoLabel->setMaximumSize(156*f,108*f);
}
ui->logoLabel->setPixmap(thumbnail);
}