QmlProjectManager: fix - can not use allImports()

That method is introduced in a future commit

Change-Id: If8847db1ecd9d2fc8b122f8a5cc5d92e2ba229ae
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tim Jenßen
2024-09-20 11:02:29 +02:00
committed by Tim Jenssen
parent dfc3ce723b
commit 990a006980

View File

@@ -734,7 +734,7 @@ QStringList QmlBuildSystem::absoluteImportPaths() const
QStringList QmlBuildSystem::targetImportPaths() const QStringList QmlBuildSystem::targetImportPaths() const
{ {
return Utils::transform<QStringList>(allImports(), [&](const QString &importPath) { return Utils::transform<QStringList>(m_projectItem->importPaths(), [&](const QString &importPath) {
const Utils::FilePath filePath = Utils::FilePath::fromString(importPath); const Utils::FilePath filePath = Utils::FilePath::fromString(importPath);
if (filePath.isAbsolutePath()) { if (filePath.isAbsolutePath()) {
return importPath; return importPath;