RemoteLinux et al: Use functor for deploy step polishing

More compact.

Change-Id: I8adc63aec71de1e57640911300f2699598ef1a01
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-06-07 16:43:06 +02:00
parent 00b692e67e
commit d747be71f5
18 changed files with 84 additions and 110 deletions

View File

@@ -42,6 +42,7 @@ QdbStopApplicationStep::QdbStopApplicationStep(ProjectExplorer::BuildStepList *b
d = new QdbStopApplicationStepPrivate;
setDefaultDisplayName(stepDisplayName());
setWidgetExpandedByDefault(false);
setInternalInitializer([this] { return deployService()->isDeploymentPossible(); });
}
QdbStopApplicationStep::~QdbStopApplicationStep()
@@ -54,11 +55,6 @@ Core::Id QdbStopApplicationStep::stepId()
return "Qdb.StopApplicationStep";
}
RemoteLinux::CheckResult QdbStopApplicationStep::initInternal()
{
return deployService()->isDeploymentPossible();
}
RemoteLinux::AbstractRemoteLinuxDeployService *QdbStopApplicationStep::deployService() const
{
return &d->deployService;