Support old QT5.12.

This commit is contained in:
Ernie Pasveer
2022-10-02 14:00:26 -05:00
parent 17ad7ce375
commit aba3c788d7
+4
View File
@@ -23,7 +23,11 @@ SeerAboutDialog::SeerAboutDialog (QWidget* parent) : QDialog(parent) {
text.replace("VERSIONNUMBER", Seer::version());
// Put the About text in as markdown. Move back to the begining.
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
textBrowser->setMarkdown(text);
#else
textBrowser->setText(text);
#endif
textBrowser->moveCursor (QTextCursor::Start);
// Set the TextBrowser's background to the same as the window's.