forked from qt-creator/qt-creator
ProjectExplorer: Remove BuildTargetInfoList wrapper class
Change-Id: I1a2ae06ec8c5b7278abca2386834d7edd31597d7 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -102,7 +102,7 @@ public:
|
||||
QList<RunConfiguration *> m_runConfigurations;
|
||||
RunConfiguration* m_activeRunConfiguration = nullptr;
|
||||
DeploymentData m_deploymentData;
|
||||
BuildTargetInfoList m_appTargets;
|
||||
QList<BuildTargetInfo> m_appTargets;
|
||||
QVariantMap m_pluginSettings;
|
||||
|
||||
Kit *const m_kit;
|
||||
@@ -345,22 +345,22 @@ DeploymentData Target::deploymentData() const
|
||||
return d->m_deploymentData;
|
||||
}
|
||||
|
||||
void Target::setApplicationTargets(const BuildTargetInfoList &appTargets)
|
||||
void Target::setApplicationTargets(const QList<BuildTargetInfo> &appTargets)
|
||||
{
|
||||
if (appTargets.list.toSet() != d->m_appTargets.list.toSet()) {
|
||||
if (appTargets.toSet() != d->m_appTargets.toSet()) {
|
||||
d->m_appTargets = appTargets;
|
||||
emit applicationTargetsChanged();
|
||||
}
|
||||
}
|
||||
|
||||
BuildTargetInfoList Target::applicationTargets() const
|
||||
const QList<BuildTargetInfo> Target::applicationTargets() const
|
||||
{
|
||||
return d->m_appTargets;
|
||||
}
|
||||
|
||||
BuildTargetInfo Target::buildTarget(const QString &buildKey) const
|
||||
{
|
||||
return Utils::findOrDefault(d->m_appTargets.list, [&buildKey](const BuildTargetInfo &ti) {
|
||||
return Utils::findOrDefault(d->m_appTargets, [&buildKey](const BuildTargetInfo &ti) {
|
||||
return ti.buildKey == buildKey;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user