From aba3c788d79bbc5d05d86d5cfac86a996e649e71 Mon Sep 17 00:00:00 2001 From: Ernie Pasveer Date: Sun, 2 Oct 2022 14:00:26 -0500 Subject: [PATCH] Support old QT5.12. --- src/SeerAboutDialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SeerAboutDialog.cpp b/src/SeerAboutDialog.cpp index b927f79..feb3f6d 100644 --- a/src/SeerAboutDialog.cpp +++ b/src/SeerAboutDialog.cpp @@ -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.