iOS: Simplify IosDeployStep config widget setup

There's nothing special here.

Change-Id: Ifce935a7c6e8dd6d745d27353cde3f2c370d0abc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2019-04-23 18:18:03 +02:00
parent 357ecd9297
commit d2f2e9e218
6 changed files with 11 additions and 139 deletions

View File

@@ -31,6 +31,7 @@
#include "iostoolhandler.h"
#include <coreplugin/messagemanager.h>
#include <projectexplorer/buildconfiguration.h>
#include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/target.h>
@@ -197,7 +198,16 @@ void IosDeployStep::handleErrorMsg(IosToolHandler *handler, const QString &msg)
BuildStepConfigWidget *IosDeployStep::createConfigWidget()
{
return new IosDeployStepWidget(this);
auto widget = new BuildStepConfigWidget(this);
widget->setObjectName("IosDeployStepWidget");
widget->setDisplayName(QString("<b>%1</b>").arg(displayName()));
widget->setSummaryText(widget->displayName());
connect(this, &ProjectConfiguration::displayNameChanged,
widget, &BuildStepConfigWidget::updateSummary);
return widget;
}
bool IosDeployStep::fromMap(const QVariantMap &map)