CMake: Implement CMakeTargetNode::buildKey()

This always sets a node id, that is reasonably unique. So use it.

Change-Id: I9b1cb978f0d6edffabee4eafa5ec078a6a6827a6
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
hjk
2018-12-18 10:10:53 +01:00
parent a0e551a1e8
commit 57a2e849b3
2 changed files with 6 additions and 0 deletions

View File

@@ -196,6 +196,11 @@ QString CMakeTargetNode::tooltip() const
return m_tooltip;
}
QString CMakeTargetNode::buildKey() const
{
return QString::fromUtf8(id());
}
bool CMakeTargetNode::supportsAction(ProjectExplorer::ProjectAction action,
const ProjectExplorer::Node *) const
{

View File

@@ -72,6 +72,7 @@ public:
bool showInSimpleTree() const final;
QString tooltip() const final;
QString buildKey() const final;
bool supportsAction(ProjectExplorer::ProjectAction action, const Node *node) const override;
bool addFiles(const QStringList &filePaths, QStringList *notAdded) override;