forked from qt-creator/qt-creator
ProjectExplorer: Move Node::nodeType implementation
... to the only remaining user, and rename it there. Change-Id: I0bdb3179282e323f5ad7b41d034bb5f3db8f6ffc Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -163,20 +163,6 @@ void Node::setAbsoluteFilePathAndLine(const Utils::FileName &path, int line)
|
||||
|
||||
Node::~Node() = default;
|
||||
|
||||
NodeType Node::nodeType() const
|
||||
{
|
||||
if (asFileNode())
|
||||
return NodeType::File;
|
||||
if (isFolderNodeType())
|
||||
return NodeType::Folder;
|
||||
if (isProjectNodeType())
|
||||
return NodeType::Project;
|
||||
if (isVirtualFolderType())
|
||||
return NodeType::VirtualFolder;
|
||||
QTC_CHECK(false);
|
||||
return NodeType::File;
|
||||
}
|
||||
|
||||
int Node::priority() const
|
||||
{
|
||||
return m_priority;
|
||||
|
||||
Reference in New Issue
Block a user