aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmljs/qmljsinterpreter.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <[email protected]>2023-01-24 14:39:05 +0100
committerAlessandro Portale <[email protected]>2023-02-01 13:48:12 +0000
commit17b28909a99cce2dc908ad2ffbb43a85539fa526 (patch)
tree9f30a1d7b1428d8fa9f8ff3acebf204237b47b5a /src/libs/qmljs/qmljsinterpreter.cpp
parentfc8b81f2cb0b8acb7cdeb6109539869d42dd7802 (diff)
QmlJS: Tr::Tr
Excluding the Qml parser, which needs to remain in sync with it's copy in Qt. Change-Id: I22f475f265dd74687e3239c4d6916c777798a447 Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljsinterpreter.cpp')
-rw-r--r--src/libs/qmljs/qmljsinterpreter.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libs/qmljs/qmljsinterpreter.cpp b/src/libs/qmljs/qmljsinterpreter.cpp
index 5bcfec37a73..7a2cd6fa717 100644
--- a/src/libs/qmljs/qmljsinterpreter.cpp
+++ b/src/libs/qmljs/qmljsinterpreter.cpp
@@ -2,14 +2,17 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "parser/qmljsast_p.h"
+
+#include "qmljsinterpreter.h"
+
#include "qmljsconstants.h"
#include "qmljscontext.h"
#include "qmljsevaluate.h"
-#include "qmljsinterpreter.h"
#include "qmljsmodelmanagerinterface.h"
#include "qmljsscopeastpath.h"
#include "qmljsscopebuilder.h"
#include "qmljsscopechain.h"
+#include "qmljstr.h"
#include "qmljstypedescriptionreader.h"
#include "qmljsvalueowner.h"
@@ -1340,13 +1343,11 @@ CppQmlTypesLoader::BuiltinObjects CppQmlTypesLoader::loadQmlTypes(const QFileInf
error = file.errorString();
}
if (!error.isEmpty()) {
- errors->append(TypeDescriptionReader::tr(
- "Errors while loading qmltypes from %1:\n%2").arg(
+ errors->append(Tr::tr("Errors while loading qmltypes from %1:\n%2").arg(
qmlTypeFile.absoluteFilePath(), error));
}
if (!warning.isEmpty()) {
- warnings->append(TypeDescriptionReader::tr(
- "Warnings while loading qmltypes from %1:\n%2").arg(
+ warnings->append(Tr::tr("Warnings while loading qmltypes from %1:\n%2").arg(
qmlTypeFile.absoluteFilePath(), warning));
}
}