ClangCodeModel: Tr::tr

Change-Id: I60aeadd38471cc65de250f66f0f09ba2931b3da2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2023-01-19 09:51:10 +01:00
parent 0454e939e1
commit 117b6f1921
22 changed files with 139 additions and 284 deletions

View File

@@ -3,6 +3,7 @@
#include "clangdiagnostictooltipwidget.h"
#include "clangcodemodeltr.h"
#include "clangfixitoperation.h"
#include "clangutils.h"
@@ -132,8 +133,7 @@ public:
if (!source.isEmpty()) {
text.append(QString::fromUtf8("<tr><td colspan='2' align='left'>"
"<font color='gray'>%1</font></td></tr>")
.arg(QCoreApplication::translate("ClangDiagnosticWidget",
"[Source: %1]").arg(source)));
.arg(Tr::tr("[Source: %1]").arg(source)));
}
text.append("</table>");