forked from qt-creator/qt-creator
QbsProjectManager: Fix uniqueProductName() and productDisplayName()
These still assumed we can only multiplex on profiles. Change-Id: Ice3dfe06c1be732ecae42db75155e930b0554b6f Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
@@ -103,13 +103,13 @@ QbsProjectManager::Internal::QbsGroupNode
|
||||
}
|
||||
|
||||
void setupQbsProductData(QbsProjectManager::Internal::QbsProductNode *node,
|
||||
const qbs::ProductData &prd, const qbs::Project &project)
|
||||
const qbs::ProductData &prd)
|
||||
{
|
||||
using namespace QbsProjectManager::Internal;
|
||||
|
||||
node->setEnabled(prd.isEnabled());
|
||||
|
||||
node->setDisplayName(QbsProject::productDisplayName(project, prd));
|
||||
node->setDisplayName(prd.fullDisplayName());
|
||||
node->setAbsoluteFilePathAndLine(Utils::FileName::fromString(prd.location().filePath()).parentDir(), -1);
|
||||
const QString &productPath = QFileInfo(prd.location().filePath()).absolutePath();
|
||||
|
||||
@@ -137,12 +137,11 @@ void setupQbsProductData(QbsProjectManager::Internal::QbsProductNode *node,
|
||||
setupArtifacts(genFiles, prd.generatedArtifacts());
|
||||
}
|
||||
|
||||
QbsProjectManager::Internal::QbsProductNode *
|
||||
buildProductNodeTree(const qbs::Project &project, const qbs::ProductData &prd)
|
||||
QbsProjectManager::Internal::QbsProductNode *buildProductNodeTree(const qbs::ProductData &prd)
|
||||
{
|
||||
auto result = new QbsProjectManager::Internal::QbsProductNode(prd);
|
||||
|
||||
setupQbsProductData(result, prd, project);
|
||||
setupQbsProductData(result, prd);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -162,7 +161,7 @@ void setupProjectNode(QbsProjectManager::Internal::QbsProjectNode *node, const q
|
||||
}
|
||||
|
||||
foreach (const qbs::ProductData &prd, prjData.products())
|
||||
node->addNode(buildProductNodeTree(qbsProject, prd));
|
||||
node->addNode(buildProductNodeTree(prd));
|
||||
|
||||
if (!prjData.name().isEmpty())
|
||||
node->setDisplayName(prjData.name());
|
||||
|
||||
Reference in New Issue
Block a user