ProjectTree: Change hasBuildTargets to FolderNode::showInSimpleTree

So that the resource node can override it.

Task-number: QTCREATORBUG-11678
Change-Id: Id30d1b99ee23cc18fc29fc99cf0ad7ca919ed527
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Daniel Teske
2014-03-17 11:52:45 +01:00
parent e27603495f
commit 50fc169c94
18 changed files with 75 additions and 58 deletions

View File

@@ -225,7 +225,7 @@ FolderNode *GenericProjectNode::findFolderByName(const QStringList &components,
return 0;
}
bool GenericProjectNode::hasBuildTargets() const
bool GenericProjectNode::showInSimpleTree() const
{
return true;
}

View File

@@ -51,7 +51,7 @@ public:
Core::IDocument *projectFile() const;
QString projectFilePath() const;
bool hasBuildTargets() const;
bool showInSimpleTree() const;
QList<ProjectExplorer::ProjectAction> supportedActions(Node *node) const;