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