Skip to content

Commit

Permalink
Gui/MessageBox: check for rich text (html)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Jul 2, 2024
1 parent 993458c commit 8e614d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Gui/MessageBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ MessageBox::init(const QString & title,
_imp->infoEdit->setReadOnly(true);
_imp->infoEdit->setAlignment(Qt::AlignVCenter | Qt::AlignLeft);
_imp->infoEdit->setWordWrapMode(QTextOption::WordWrap);
_imp->infoEdit->setHtml(message);
if ( Qt::mightBeRichText(message) ) {
_imp->infoEdit->setHtml(message);
} else {
_imp->infoEdit->setPlainText(message);
}
//QFont f(appFont,appFontSize);
//_imp->infoEdit->setFont(f);
}
Expand Down

0 comments on commit 8e614d8

Please sign in to comment.