ProjectExplorer: Use setters in ProjectExplorer::Node

Instead of constructor arguments. This makes it clearer on the
user side which value is actually changed.

Change-Id: I63ae8cd139a49700996c8874098111aad89ace22
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-02-25 13:06:09 +01:00
parent 1ca9b2b16e
commit f844f54cb7
4 changed files with 45 additions and 21 deletions

View File

@@ -237,8 +237,10 @@ static bool supportsNodeAction(ProjectAction action, const Node *node)
QbsFileNode::QbsFileNode(const Utils::FileName &filePath,
const ProjectExplorer::FileType fileType,
int line) :
ProjectExplorer::FileNode(filePath, fileType, line, QByteArray{})
{}
ProjectExplorer::FileNode(filePath, fileType)
{
setLine(line);
}
QString QbsFileNode::displayName() const
{