forked from qt-creator/qt-creator
ProjectExplorer: Add and use addNestedNode(...) that takes unique_ptr
Change-Id: Ieb26721d053111fb350494e31d1f6da3fe642420 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -461,7 +461,8 @@ void PythonProject::refresh(Target *target)
|
||||
for (const QString &f : m_files) {
|
||||
const QString displayName = baseDir.relativeFilePath(f);
|
||||
FileType fileType = f.endsWith(".pyqtc") ? FileType::Project : FileType::Source;
|
||||
newRoot->addNestedNode(new PythonFileNode(FileName::fromString(f), displayName, fileType));
|
||||
newRoot->addNestedNode(std::make_unique<PythonFileNode>(FileName::fromString(f),
|
||||
displayName, fileType));
|
||||
if (fileType == FileType::Source) {
|
||||
BuildTargetInfo bti;
|
||||
bti.buildKey = f;
|
||||
|
||||
Reference in New Issue
Block a user