aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltc/CMakeLists.txt
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2023-02-02 11:45:19 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2023-02-02 16:55:03 +0000
commit55f3bf8882fc8eeb132b4d2af9158bd1fee6bd78 (patch)
tree0999a2fd0250b9e148d5c3b896ce3202391d047e /tests/auto/qml/qmltc/CMakeLists.txt
parente4e20fabfe5cbee890b91cf6cc35ceb57ce3fe43 (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 'tests/auto/qml/qmltc/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions