NOISSUE Markdown is not available in Qt 5.4 ... who would have thought?

This commit is contained in:
Petr Mrázek 2021-08-20 01:57:59 +02:00
parent 1b68d51da6
commit 50b92c1af2
3 changed files with 5 additions and 5 deletions

View File

@ -77,10 +77,10 @@ void LoginDialog::onTaskFailed(const QString &reason)
QString processed;
for(auto line: lines) {
if(line.size()) {
processed += "<font color='red'>" + line + "</font>\n";
processed += "<font color='red'>" + line + "</font><br />";
}
else {
processed += '\n';
processed += "<br />";
}
}
ui->label->setText(processed);

View File

@ -64,10 +64,10 @@ void MSALoginDialog::onTaskFailed(const QString &reason)
QString processed;
for(auto line: lines) {
if(line.size()) {
processed += "<font color='red'>" + line + "</font>\n";
processed += "<font color='red'>" + line + "</font><br />";
}
else {
processed += '\n';
processed += "<br />";
}
}
ui->label->setText(processed);

View File

@ -28,7 +28,7 @@
aaaaa</string>
</property>
<property name="textFormat">
<enum>Qt::MarkdownText</enum>
<enum>Qt::RichText</enum>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>