ProjectExplorer: Add a "product" tag to the ProjectNode class

A product is a project node from which a target binary is produced, such
as a Product item in qbs or a .pro file in qmake.

Change-Id: I6a0e6bed6c02684cb03b2b18fed6a1b493fa78b2
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2019-05-23 14:35:31 +02:00
parent a889669369
commit e59bcd9962
5 changed files with 17 additions and 9 deletions

View File

@@ -329,6 +329,7 @@ QbsProductNode::QbsProductNode(const qbs::ProductData &prd) :
{
static QIcon productIcon = Core::FileIconProvider::directoryIcon(Constants::QBS_PRODUCT_OVERLAY_ICON);
setIcon(productIcon);
setIsProduct();
}
bool QbsProductNode::supportsAction(ProjectAction action, const Node *node) const