diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2023-02-02 11:45:19 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2023-02-02 16:55:03 +0000 |
commit | 55f3bf8882fc8eeb132b4d2af9158bd1fee6bd78 (patch) | |
tree | 0999a2fd0250b9e148d5c3b896ce3202391d047e /src/quick/doc/snippets/qml/listview/listview.qml | |
parent | e4e20fabfe5cbee890b91cf6cc35ceb57ce3fe43 (diff) |
loadFromModule: Properly handle QML only modules
QQmlMetaType::typeModule only returns a sensible result for modules with
some C++ integration. That is not the case for a pure QML module (qmldir
put into an import path).
Detect the missing module case by instead checking whether addImport
failed to handle the module (either returning false, or returning true
but with unresolved imports).
Fixes: QTBUG-110882
Pick-to: 6.5
Change-Id: I7b25e225e1a34ec91f7ce4d9f4a182a24168ba47
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/quick/doc/snippets/qml/listview/listview.qml')
0 files changed, 0 insertions, 0 deletions