mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 00:25:16 -04:00
fixed default size of default icon in boards
This commit is contained in:
parent
5e3dab62fd
commit
f064325592
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue