diff options
author | Tim Jenßen <tim.jenssen@qt.io> | 2023-03-26 15:58:49 +0200 |
---|---|---|
committer | Tim Jenßen <tim.jenssen@qt.io> | 2023-03-26 16:26:18 +0200 |
commit | feabda3aa78b7861ae03f1cc2296e8adf34ba038 (patch) | |
tree | 9bc06c7eeb6fca92e8cdd273908f7350260a8cb8 /src/libs/qmljs/qmljslink.cpp | |
parent | 359ea5d55a9452d70c20754c2380b1bf1c704c04 (diff) | |
parent | f7639f458a4b87263e96de70f26554a660148bc3 (diff) | |
download | qt-creator-feabda3aa78b7861ae03f1cc2296e8adf34ba038.tar.gz |
Merge remote-tracking branch 'origin/10.0' into qds/dev
bigger conflicts resolved at:
src/plugins/qmldesigner/CMakeLists.txt
src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp
Change-Id: I08e2a109d8e37cbd77225129854e9e633725bfc7
Diffstat (limited to 'src/libs/qmljs/qmljslink.cpp')
-rw-r--r-- | src/libs/qmljs/qmljslink.cpp | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/src/libs/qmljs/qmljslink.cpp b/src/libs/qmljs/qmljslink.cpp index fd8c8de9d0..ed1c506df7 100644 --- a/src/libs/qmljs/qmljslink.cpp +++ b/src/libs/qmljs/qmljslink.cpp @@ -1,14 +1,16 @@ // Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "qmljslink.h" #include "parser/qmljsast_p.h" -#include "qmljsdocument.h" + #include "qmljsbind.h" -#include "qmljsutils.h" -#include "qmljsmodelmanagerinterface.h" #include "qmljsconstants.h" +#include "qmljsdocument.h" +#include "qmljsmodelmanagerinterface.h" +#include "qmljstr.h" +#include "qmljsutils.h" #include <utils/algorithm.h> #include <utils/filepath.h> @@ -293,7 +295,7 @@ void LinkPrivate::populateImportedTypes(Imports *imports, const Document::Ptr &d imports->setImportFailed(); if (info.ast()) { error(doc, info.ast()->fileNameToken, - Link::tr("File or directory not found.")); + Tr::tr("File or directory not found.")); } break; default: @@ -455,7 +457,7 @@ Import LinkPrivate::importNonFile(const Document::Ptr &doc, const ImportInfo &im error(doc, locationFromRange(importInfo.ast()->firstSourceLocation(), importInfo.ast()->lastSourceLocation()), - Link::tr( + Tr::tr( "QML module not found (%1).\n\n" "Import paths:\n" "%2\n\n" @@ -525,19 +527,19 @@ bool LinkPrivate::importLibrary(const Document::Ptr &doc, import->valid = false; error(doc, errorLoc, - Link::tr("Implicit import '%1' of QML module '%2' not found.\n\n" - "Import paths:\n" - "%3\n\n" - "For qmake projects, use the QML_IMPORT_PATH variable to add import " - "paths.\n" - "For Qbs projects, declare and set a qmlImportPaths property in " - "your product " - "to add import paths.\n" - "For qmlproject projects, use the importPaths property to add " - "import paths.\n" - "For CMake projects, make sure QML_IMPORT_PATH variable is in " - "CMakeCache.txt.\n") - .arg(importName, + Tr::tr("Implicit import '%1' of QML module '%2' not found.\n\n" + "Import paths:\n" + "%3\n\n" + "For qmake projects, use the QML_IMPORT_PATH variable to add import " + "paths.\n" + "For Qbs projects, declare and set a qmlImportPaths property in " + "your product " + "to add import paths.\n" + "For qmlproject projects, use the importPaths property to add " + "import paths.\n" + "For CMake projects, make sure QML_IMPORT_PATH variable is in " + "CMakeCache.txt.\n") + .arg(importName, importInfo.name(), Utils::transform(m_importPaths, [](const Utils::FilePath &p) { return p.toString(); @@ -569,8 +571,9 @@ bool LinkPrivate::importLibrary(const Document::Ptr &doc, if (!optional && errorLoc.isValid()) { appendDiagnostic(doc, DiagnosticMessage( Severity::ReadingTypeInfoWarning, errorLoc, - Link::tr("QML module contains C++ plugins, " - "currently reading type information... %1").arg(import->info.name()))); + Tr::tr("QML module contains C++ plugins, " + "currently reading type information... %1") + .arg(import->info.name()))); import->valid = false; } } else if (libraryInfo.pluginTypeInfoStatus() == LibraryInfo::DumpError |