Added markdown QT version check
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
84c63f4f01
commit
8d3bc6b6b9
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user