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: {
|
case 1: {
|
||||||
ui->templateGroup->setDisabled(true);
|
ui->templateGroup->setDisabled(true);
|
||||||
ui->optionsGroup->setDisabled(false);
|
ui->optionsGroup->setDisabled(false);
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 1, 0)
|
||||||
ui->resultText->show();
|
ui->resultText->show();
|
||||||
|
#else
|
||||||
|
ui->resultText->hide();
|
||||||
|
#endif
|
||||||
format = ExportToModList::MARKDOWN;
|
format = ExportToModList::MARKDOWN;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -123,7 +127,9 @@ void ExportToModListDialog::triggerImp()
|
|||||||
}
|
}
|
||||||
case ExportToModList::MARKDOWN: {
|
case ExportToModList::MARKDOWN: {
|
||||||
exampleLine = "[{name}]({url})[{version}] by {authors}";
|
exampleLine = "[{name}]({url})[{version}] by {authors}";
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 1, 0)
|
||||||
ui->resultText->setMarkdown(txt);
|
ui->resultText->setMarkdown(txt);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ExportToModList::PLAINTXT: {
|
case ExportToModList::PLAINTXT: {
|
||||||
|
Loading…
Reference in New Issue
Block a user