forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user