NOISSUE Markdown is not available in Qt 5.4 ... who would have thought?
This commit is contained in:
parent
1b68d51da6
commit
50b92c1af2
@ -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);
|
||||||
|
@ -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);
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user