forked from qt-creator/qt-creator
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:
@@ -226,8 +226,17 @@ void addFileSystemNodes(ProjectNode *root, const QList<const FileNode *> &allFil
|
|||||||
if (!fn->filePath().isChildOf(root->filePath()))
|
if (!fn->filePath().isChildOf(root->filePath()))
|
||||||
continue;
|
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->setEnabled(false);
|
||||||
|
node->setPriority(fn->priority());
|
||||||
|
node->setListInProject(fn->listInProject());
|
||||||
|
|
||||||
fileSystemNode->addNestedNode(std::move(node));
|
fileSystemNode->addNestedNode(std::move(node));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user