mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-05 01:25:39 -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->subjectLabel->setMinimumWidth(100);
|
||||||
//ui->warning_label->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->setProperty("new", false);
|
||||||
ui->mainFrame->style()->unpolish(ui->mainFrame);
|
ui->mainFrame->style()->unpolish(ui->mainFrame);
|
||||||
ui->mainFrame->style()->polish( ui->mainFrame);
|
ui->mainFrame->style()->polish( ui->mainFrame);
|
||||||
@ -436,12 +432,13 @@ void GxsChannelPostItem::fill()
|
|||||||
QString msgText;
|
QString msgText;
|
||||||
//float f = QFontMetricsF(font()).height()/14.0 ;
|
//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)
|
if(mPost.mThumbnail.mData != NULL)
|
||||||
{
|
{
|
||||||
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.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user