mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-23 22:01:05 -05:00
fixed default size of default icon in boards
This commit is contained in:
parent
5e3dab62fd
commit
f064325592
@ -353,6 +353,9 @@ void BoardPostDisplayWidget_compact::setup()
|
||||
}
|
||||
else
|
||||
{
|
||||
int desired_height = QFontMetricsF(font()).height() * 5;
|
||||
ui->pictureLabel->setFixedSize(16/9.0*desired_height,desired_height);
|
||||
|
||||
if(mPost.mImage.mData != NULL)
|
||||
{
|
||||
QPixmap pixmap;
|
||||
@ -365,13 +368,10 @@ void BoardPostDisplayWidget_compact::setup()
|
||||
pixmap.save("pix.png","PNG");
|
||||
#endif
|
||||
|
||||
int desired_height = QFontMetricsF(font()).height() * 5;
|
||||
ui->pictureLabel->setFixedSize(16/9.0*desired_height,desired_height);
|
||||
ui->pictureLabel->setPicture(pixmap);
|
||||
}
|
||||
else
|
||||
ui->pictureLabel->setPicture( FilesDefs::getPixmapFromQtResourcePath(":/images/thumb-default.png") );
|
||||
|
||||
}
|
||||
|
||||
ui->notes->setText(RsHtml().formatText(NULL, QString::fromUtf8(mPost.mNotes.c_str()), RSHTML_FORMATTEXT_EMBED_SMILEYS | RSHTML_FORMATTEXT_EMBED_LINKS));
|
||||
|
Loading…
Reference in New Issue
Block a user