mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 23:36:59 -05:00
removed scale contents
This commit is contained in:
parent
fa64fd0362
commit
f67153538f
@ -221,10 +221,6 @@ void GxsChannelPostItem::setup()
|
||||
//ui->subjectLabel->setMinimumWidth(100);
|
||||
//ui->warning_label->setMinimumWidth(100);
|
||||
|
||||
ui->logoLabel->setEnableZoom(false);
|
||||
int desired_height = QFontMetricsF(font()).height() * 8;
|
||||
ui->logoLabel->setFixedSize(4/3.0*desired_height,desired_height);
|
||||
|
||||
ui->mainFrame->setProperty("new", false);
|
||||
ui->mainFrame->style()->unpolish(ui->mainFrame);
|
||||
ui->mainFrame->style()->polish( ui->mainFrame);
|
||||
@ -436,12 +432,13 @@ void GxsChannelPostItem::fill()
|
||||
QString msgText;
|
||||
//float f = QFontMetricsF(font()).height()/14.0 ;
|
||||
|
||||
ui->logoLabel->setEnableZoom(false);
|
||||
int desired_height = QFontMetricsF(font()).height() * 8;
|
||||
ui->logoLabel->setFixedSize(4/3.0*desired_height,desired_height);
|
||||
|
||||
if(mPost.mThumbnail.mData != NULL)
|
||||
{
|
||||
QPixmap thumbnail;
|
||||
|
||||
ui->logoLabel->setScaledContents(true);
|
||||
|
||||
QPixmap thumbnail;
|
||||
GxsIdDetails::loadPixmapFromData(mPost.mThumbnail.mData, mPost.mThumbnail.mSize, thumbnail,GxsIdDetails::ORIGINAL);
|
||||
// Wiping data - as its been passed to thumbnail.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user