Qbs: Fix build after update to ProjectNodes

Change-Id: Ibb736901596a7295f50059f5dd448a2b5da32e85
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tobias Hunger
2017-03-14 14:06:21 +01:00
committed by hjk
parent 9804d56009
commit 6815633dff

View File

@@ -63,7 +63,7 @@ void setupArtifacts(ProjectExplorer::FolderNode *root, const QList<qbs::Artifact
return new ProjectExplorer::FileNode(path, type, isGenerated); return new ProjectExplorer::FileNode(path, type, isGenerated);
}); });
root->buildTree(fileNodes); root->addNestedNodes(fileNodes);
root->compress(); root->compress();
} }
@@ -197,7 +197,7 @@ QbsRootProjectNode *QbsNodeTreeBuilder::buildTree(QbsProject *project)
if (filePath.isChildOf(base)) if (filePath.isChildOf(base))
projectBuildSystemFiles.append(new ProjectExplorer::FileNode(filePath, ProjectExplorer::FileType::Project, false)); projectBuildSystemFiles.append(new ProjectExplorer::FileNode(filePath, ProjectExplorer::FileType::Project, false));
} }
buildSystemFiles->buildTree(projectBuildSystemFiles); buildSystemFiles->addNestedNodes(projectBuildSystemFiles);
buildSystemFiles->compress(); buildSystemFiles->compress();
root->addNode(buildSystemFiles); root->addNode(buildSystemFiles);