Commit ba54384a authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Qbs: Show products in simplified project tree



So far the simplified project tree was a flat list of files for qbs
projects. With this change it is a flat list of Products, each
containing a flat list of all files referrenced.

Change-Id: If53e80ca69f595df245a20af9f9ced1121cf30af
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@digia.com>
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 1d4fb08d
......@@ -256,9 +256,6 @@ QbsBaseProjectNode::QbsBaseProjectNode(const QString &path) :
bool QbsBaseProjectNode::hasBuildTargets() const
{
foreach (ProjectNode *n, subProjectNodes())
if (n->hasBuildTargets())
return true;
return false;
}
......@@ -486,6 +483,11 @@ bool QbsProductNode::isEnabled() const
return m_qbsProductData.isEnabled();
}
bool QbsProductNode::hasBuildTargets() const
{
return true;
}
void QbsProductNode::setQbsProductData(const qbs::ProductData prd)
{
if (m_qbsProductData == prd)
......
......@@ -144,6 +144,7 @@ public:
explicit QbsProductNode(const qbs::ProductData &prd);
bool isEnabled() const;
bool hasBuildTargets() const;
void setQbsProductData(const qbs::ProductData prd);
const qbs::ProductData qbsProductData() const { return m_qbsProductData; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment