McuSupport: Use System header paths in module mappings

Previously only HeaderPathType::User was allowed for mappings when the
headers and qml files are joined (the case for Qul), but "Qul QtQuick
include" is of type HeaderPathType::System causing the import not found
error in QTCREATORBUG-26751

Task-number: QTCREATORBUG-26751
Change-Id: Ie40ad32c77bb00ad2c01fd1ae28330669db1e785
Reviewed-by: Piotr Mućko <piotr.mucko@qt.io>
Reviewed-by: Dawid Śliwa <dawid.sliwa@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Yasser Grimes
2022-07-13 10:42:49 +03:00
parent 0da525d65c
commit 0bb272d411

View File

@@ -669,7 +669,7 @@ void CMakeBuildSystem::updateProjectData()
if (mergedHeaderPathsAndQmlImportPaths) {
for (const auto &headerPath : rpp.headerPaths) {
if (headerPath.type == HeaderPathType::User)
if (headerPath.type == HeaderPathType::User || headerPath.type == HeaderPathType::System)
extraHeaderPaths.append(headerPath.path);
}
}