ProjectNodes: Do not define a copy constructor for FileNode

Nodes are QObjects (still), so they should not have a copy constructor.

Change-Id: I1b20663ee0ec121cda4d39ced7a9f204fb4621a1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tobias Hunger
2017-05-03 12:20:10 +02:00
parent 9ae5591956
commit 175643fd7e
4 changed files with 12 additions and 3 deletions

View File

@@ -287,6 +287,14 @@ FileNode::FileNode(const Utils::FileName &filePath,
setPriority(DefaultFilePriority);
}
FileNode *FileNode::clone() const
{
auto fn = new FileNode(filePath(), fileType(), isGenerated(), line());
fn->setEnabled(isEnabled());
fn->setPriority(priority());
return fn;
}
FileType FileNode::fileType() const
{
return m_fileType;