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; QString processed;
for(auto line: lines) { for(auto line: lines) {
if(line.size()) { if(line.size()) {
processed += "<font color='red'>" + line + "</font>\n"; processed += "<font color='red'>" + line + "</font><br />";
} }
else { else {
processed += '\n'; processed += "<br />";
} }
} }
ui->label->setText(processed); ui->label->setText(processed);

View File

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

View File

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