summaryrefslogtreecommitdiff
path: root/src/plugins/winrt
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-01-05 12:06:56 +0100
committerhjk <hjk@qt.io>2018-01-11 09:42:35 +0000
commitc39eb08ac44b93f0cac3fbf07e2ee51fb43b910c (patch)
tree5917f2a2252c1d95049861b82873638c08f9d2f1 /src/plugins/winrt
parent54160400e9675c9667727142fcac6454181ea3ba (diff)
downloadqt-creator-c39eb08ac44b93f0cac3fbf07e2ee51fb43b910c.tar.gz
QmakeProject: Make availableBuildTargets return a BuildTargetInfo list
It's what the "consumer side" expects. Change-Id: I1a4e75eda09f8626fcf65290e6c58a08eed9fdca Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/winrt')
-rw-r--r--src/plugins/winrt/winrtrunfactories.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/winrt/winrtrunfactories.cpp b/src/plugins/winrt/winrtrunfactories.cpp
index 3277203c36..55e098db0c 100644
--- a/src/plugins/winrt/winrtrunfactories.cpp
+++ b/src/plugins/winrt/winrtrunfactories.cpp
@@ -54,10 +54,8 @@ QList<BuildTargetInfo>
WinRtRunConfigurationFactory::availableBuildTargets(Target *parent, CreationMode mode) const
{
QmakeProject *project = static_cast<QmakeProject *>(parent->project());
- const QList<QString> buildTargets = project->buildTargets(mode);
- return Utils::transform(buildTargets, [](const QString &buildTarget) {
- BuildTargetInfo bti;
- bti.targetName = buildTarget;
+ const QList<BuildTargetInfo> buildTargets = project->buildTargets(mode);
+ return Utils::transform(buildTargets, [](BuildTargetInfo bti) {
bti.displayName = tr("Run App Package");
return bti;
});