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

@@ -250,7 +250,7 @@ QbsBaseProjectNode::QbsBaseProjectNode(const QString &path) :
ProjectExplorer::ProjectNode(path)
{ }
bool QbsBaseProjectNode::hasBuildTargets() const
bool QbsBaseProjectNode::showInSimpleTree() const
{
return false;
}
@@ -493,7 +493,7 @@ bool QbsProductNode::isEnabled() const
return m_qbsProductData.isEnabled();
}
bool QbsProductNode::hasBuildTargets() const
bool QbsProductNode::showInSimpleTree() const
{
return true;
}
@@ -666,6 +666,11 @@ const qbs::ProjectData QbsProjectNode::qbsProjectData() const
return m_qbsProjectData;
}
bool QbsProjectNode::showInSimpleTree() const
{
return true;
}
void QbsProjectNode::ctor()
{
if (m_projectIcon.isNull())