forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user