forked from qt-creator/qt-creator
ProjectExplorer: Remove BuildTargetInfo::displayName
This was previously intented to be used in the RunConfig Add... menu, but this role is now taken by RunConfigurationCreationInfo::displayName. This fixes also a regression for setups that relied on QmakeProject::buildTargets() and a fix up empty display names later. Change-Id: If75fc79efbdedc918a126e50c962fc188d7a3ebc Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -453,7 +453,8 @@ IRunConfigurationFactory::availableCreators(Target *parent, IRunConfigurationFac
|
||||
{
|
||||
Q_UNUSED(mode);
|
||||
return Utils::transform(parent->applicationTargets().list, [this](const BuildTargetInfo &ti) {
|
||||
return RunConfigurationCreationInfo(this, m_runConfigBaseId, ti.targetName, ti.displayName);
|
||||
return RunConfigurationCreationInfo(this, m_runConfigBaseId, ti.targetName,
|
||||
QFileInfo(ti.targetName).completeBaseName());
|
||||
});
|
||||
}
|
||||
|
||||
@@ -476,7 +477,7 @@ void IRunConfigurationFactory::addSupportedProjectType(Core::Id id)
|
||||
RunConfigurationCreationInfo
|
||||
IRunConfigurationFactory::convert(const BuildTargetInfo &ti) const
|
||||
{
|
||||
return convert(ti.displayName, ti.targetName);
|
||||
return convert(QFileInfo(ti.targetName).completeBaseName(), ti.targetName);
|
||||
}
|
||||
|
||||
RunConfigurationCreationInfo
|
||||
|
||||
Reference in New Issue
Block a user