CMakePM: Do not expand qrc files for <File System>

The qrc file expansion could take time and it's not a
great idea to do it for all files in the filesystem.

Amends 53115259ba

Task-number: QTCREATORBUG-25783
Change-Id: I10b1f6c224e78b0efe4654bcf36d7cb9ba0e7e5f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Cristian Adam
2021-06-23 15:33:31 +02:00
parent 10420d4e5e
commit 913dc9549e

View File

@@ -226,8 +226,17 @@ void addFileSystemNodes(ProjectNode *root, const QList<const FileNode *> &allFil
if (!fn->filePath().isChildOf(root->filePath()))
continue;
std::unique_ptr<FileNode> node(fn->clone());
FileType fileType = fn->fileType();
if (fileType == FileType::Resource)
fileType = FileType::Source;
std::unique_ptr<FileNode> node(new FileNode(fn->filePath(), fileType));
node->setLine(fn->line());
node->setIsGenerated(fn->isGenerated());
node->setEnabled(false);
node->setPriority(fn->priority());
node->setListInProject(fn->listInProject());
fileSystemNode->addNestedNode(std::move(node));
}