forked from qt-creator/qt-creator
Revert "Revert "Designer: Fix look-up of resources for UI files""
This reverts commit d907df0349.
The original change was pushed to 4.10 and reverted there for
binary compatibility reasons. Revert the revert here.
Conflicts:
src/plugins/projectexplorer/projectnodes.h
Change-Id: Ibfd84a30a6cfdd78e1fa1b1c61785d391a5a18be
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -328,7 +328,14 @@ QbsProductNode::QbsProductNode(const qbs::ProductData &prd) :
|
||||
{
|
||||
static QIcon productIcon = Core::FileIconProvider::directoryIcon(Constants::QBS_PRODUCT_OVERLAY_ICON);
|
||||
setIcon(productIcon);
|
||||
setIsProduct();
|
||||
if (m_qbsProductData.isRunnable()) {
|
||||
setProductType(ProductType::App);
|
||||
} else if (m_qbsProductData.type().contains("dynamiclibrary")
|
||||
|| m_qbsProductData.type().contains("staticlibrary")) {
|
||||
setProductType(ProductType::Lib);
|
||||
} else {
|
||||
setProductType(ProductType::Other);
|
||||
}
|
||||
}
|
||||
|
||||
bool QbsProductNode::supportsAction(ProjectAction action, const Node *node) const
|
||||
|
||||
Reference in New Issue
Block a user