ProjectExplorer: "Upstream" line number display for FileNodes

So far only used and set with QBS, but conceptually usable more
generally, and harmless if not used.

Change-Id: I1d2d615f5613340690de22a1c7d716a193fb1f05
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-02-26 13:34:23 +01:00
parent 0b593951d0
commit 44a42db1ae
4 changed files with 9 additions and 9 deletions

View File

@@ -417,6 +417,14 @@ bool FileNode::supportsAction(ProjectAction action, const Node *node) const
return parentFolder && parentFolder->supportsAction(action, node);
}
QString FileNode::displayName() const
{
int l = line();
if (l < 0)
return Node::displayName();
return Node::displayName() + ':' + QString::number(l);
}
/*!
\class ProjectExplorer::FolderNode