show markdown changelog in about

This commit is contained in:
Martin Rotter 2022-03-22 08:44:38 +01:00
parent 73bab59224
commit 136ac3dce6
1 changed files with 4 additions and 0 deletions

View File

@ -57,7 +57,11 @@ void FormAbout::loadLicenseAndInformation() {
}
try {
#if QT_VERSION >= 0x050E00 // Qt >= 5.14.0
m_ui.m_txtChangelog->setMarkdown(IOFactory::readFile(APP_INFO_PATH + QL1S("/CHANGELOG")));
#else
m_ui.m_txtChangelog->setText(IOFactory::readFile(APP_INFO_PATH + QL1S("/CHANGELOG")));
#endif
}
catch (...) {
m_ui.m_txtChangelog->setText(tr("Changelog not found."));