forked from qt-creator/qt-creator
ProjectExplorer: Remove FileNode's isGenerated constructor bool
Use setter of base class, similar to setListInProject() before. Change-Id: Id620f0084a5dec0410f29c80f8f6393a6bcd5050 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -358,9 +358,9 @@ void QmlProject::generateProjectTree()
|
||||
const Utils::FileName fileName = Utils::FileName::fromString(f);
|
||||
const FileType fileType = (fileName == projectFilePath())
|
||||
? FileType::Project : FileNode::fileTypeForFileName(fileName);
|
||||
newRoot->addNestedNode(std::make_unique<FileNode>(fileName, fileType, false));
|
||||
newRoot->addNestedNode(std::make_unique<FileNode>(fileName, fileType));
|
||||
}
|
||||
newRoot->addNestedNode(std::make_unique<FileNode>(projectFilePath(), FileType::Project, false));
|
||||
newRoot->addNestedNode(std::make_unique<FileNode>(projectFilePath(), FileType::Project));
|
||||
|
||||
setRootProjectNode(std::move(newRoot));
|
||||
refreshTargetDirectory();
|
||||
|
Reference in New Issue
Block a user