fixed scaling of items.

This commit is contained in:
csoler 2020-07-04 22:51:10 +02:00
parent b453f80cbd
commit 75cf9d6c86
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
2 changed files with 98 additions and 69 deletions

View file

@ -260,8 +260,10 @@ void BoardPostDisplayWidget::fill()
// FIX THIS UP LATER.
ui->notes->setText(RsHtml().formatText(NULL, QString::fromUtf8(mPost.mNotes.c_str()), RSHTML_FORMATTEXT_EMBED_SMILEYS | RSHTML_FORMATTEXT_EMBED_LINKS));
if( ui->notes->document()==nullptr || ui->notes->document()->toPlainText().trimmed().isEmpty())
QTextDocument doc;
doc.setHtml(ui->notes->text());
if(doc.toPlainText().trimmed().isEmpty())
ui->notes->hide();
#ifdef TO_REMOVE