QtSupport: Fix HTML - and don't translate it

Change-Id: I06fc0186af648047651ee5e69be9727cec69bd40
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
Robert Loehning
2020-04-06 23:19:23 +02:00
parent b15d1951a2
commit cb1a9c12d5

View File

@@ -907,10 +907,11 @@ static bool validateQtInstallDir(FancyLineEdit *input, QString *errorString)
[](const QString &dir) { [](const QString &dir) {
return settingsFile(dir); return settingsFile(dir);
}); });
*errorString = QtOptionsPageWidget::tr( *errorString = "<html><body>" + QtOptionsPageWidget::tr(
"<html><body>Qt installation information was not found in \"%1\". " "Qt installation information was not found in \"%1\". "
"Choose a directory that contains one of the files <pre>%2</pre>") "Choose a directory that contains one of the files %2")
.arg(qtDir, filesToCheck.join('\n')); .arg(qtDir, "<pre>" + filesToCheck.join('\n') + "</pre>")
+ "</body></html>";
} }
return false; return false;
} }