aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlimport.cpp
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2022-03-11 17:24:12 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2022-03-22 10:18:15 +0100
commit0c70cac0ab54df1e7b566c39dd501a127a377eb2 (patch)
treeab4a4b689d0429aeb015222cbf3db2e5a67cb0c6 /src/qml/qml/qqmlimport.cpp
parent46f66d2b76c9f22d70d7923de3c19d88870700a2 (diff)
qqmlimport: Log when no qmldir file is found
Also log when it is found, with the path where it is found. As a drive-by, add a 'version' label before printing the version of an imported library. In a static build where some libraries end up with a version set to 'invalid', it's clearer that the version is invalid, and not the library. Change-Id: I998776b13bfe98f1668790419f1102e081878c99 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit 22b69dae253981b67124fc38adab666eb2d750be) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/qml/qml/qqmlimport.cpp')
-rw-r--r--src/qml/qml/qqmlimport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlimport.cpp b/src/qml/qml/qqmlimport.cpp
index d97c35618c..a0ba38aaf2 100644
--- a/src/qml/qml/qqmlimport.cpp
+++ b/src/qml/qml/qqmlimport.cpp
@@ -1633,7 +1633,7 @@ QTypeRevision QQmlImports::addLibraryImport(
qCDebug(lcQmlImport)
<< "addLibraryImport:" << qPrintable(baseUrl().toString())
- << uri << version << "as" << prefix;
+ << uri << "version '" << version << "'" << "as" << prefix;
return d->addLibraryImport(uri, prefix, version, qmldirIdentifier, qmldirUrl, flags,
importDb, errors);