diff options
author | Dmitrii Akshintsev <dmitrii.akshintsev@qt.io> | 2023-10-24 11:59:20 +0200 |
---|---|---|
committer | Dmitrii Akshintsev <dmitrii.akshintsev@qt.io> | 2023-11-23 21:38:42 +0100 |
commit | b54f42c41eee9edc4e4b734822a882f5e703c215 (patch) | |
tree | 59551f6ec02564197c9e7452f25a6c665ae4121d /src/qml/qml/qqmlengine.cpp | |
parent | d739b57098e8c15a04f41658e5a19f2eadebef44 (diff) |
qmllint: Add warnings to importFromHost
When importing, QQmlJSImportVisitor creates a url from the filename.
In cases when URL schema is empty and url is not Qrc
it tries to import from Host.
This commit adds a warning and early exit if file or directory
doesn't exist.
It also adds a warning if the imported object exists,
but it's neither a file nor a directory
Task-number: QTBUG-118074
Change-Id: I59cea90d611a68f2e662040a5ee4ba0ae3f0fe5b
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/qml/qml/qqmlengine.cpp')
0 files changed, 0 insertions, 0 deletions