Added markdown QT version check

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-06-25 14:58:54 +03:00
parent 84c63f4f01
commit 8d3bc6b6b9
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -76,7 +76,11 @@ void ExportToModListDialog::formatChanged(int index)
case 1: {
ui->templateGroup->setDisabled(true);
ui->optionsGroup->setDisabled(false);
#if QT_VERSION >= QT_VERSION_CHECK(6, 1, 0)
ui->resultText->show();
#else
ui->resultText->hide();
#endif
format = ExportToModList::MARKDOWN;
break;
}
@ -123,7 +127,9 @@ void ExportToModListDialog::triggerImp()
}
case ExportToModList::MARKDOWN: {
exampleLine = "[{name}]({url})[{version}] by {authors}";
#if QT_VERSION >= QT_VERSION_CHECK(6, 1, 0)
ui->resultText->setMarkdown(txt);
#endif
break;
}
case ExportToModList::PLAINTXT: {