diff options
Diffstat (limited to 'src/plugins/remotelinux/tarpackagecreationstep.cpp')
-rw-r--r-- | src/plugins/remotelinux/tarpackagecreationstep.cpp | 33 |
1 files changed, 9 insertions, 24 deletions
diff --git a/src/plugins/remotelinux/tarpackagecreationstep.cpp b/src/plugins/remotelinux/tarpackagecreationstep.cpp index 67302cf3c6..e8165bee7c 100644 --- a/src/plugins/remotelinux/tarpackagecreationstep.cpp +++ b/src/plugins/remotelinux/tarpackagecreationstep.cpp @@ -29,7 +29,7 @@ #include <projectexplorer/deploymentdata.h> #include <projectexplorer/project.h> #include <projectexplorer/target.h> -#include <qtsupport/qtkitinformation.h> + #include <ssh/sshconnection.h> #include <ssh/sshconnectionmanager.h> @@ -82,6 +82,14 @@ TarPackageCreationStep::TarPackageCreationStep(BuildStepList *bsl) m_incrementalDeploymentAspect = addAspect<BaseBoolAspect>(); m_incrementalDeploymentAspect->setLabel(tr("Package modified files only")); m_incrementalDeploymentAspect->setSettingsKey(IncrementalDeploymentKey); + + setSummaryUpdater([this] { + QString path = packageFilePath(); + if (path.isEmpty()) + return QString("<font color=\"red\">" + tr("Tarball creation not possible.") + + "</font>"); + return QString("<b>" + tr("Create tarball:") + "</b> " + path); + }); } bool TarPackageCreationStep::init() @@ -355,29 +363,6 @@ bool TarPackageCreationStep::runImpl() return success; } -BuildStepConfigWidget *TarPackageCreationStep::createConfigWidget() -{ - auto widget = BuildStep::createConfigWidget(); - - auto updateSummary = [this, widget] { - QString path = packageFilePath(); - if (path.isEmpty()) { - widget->setSummaryText("<font color=\"red\">" - + tr("Tarball creation not possible.") - + "</font>"); - } else { - widget->setSummaryText("<b>" + tr("Create tarball:") + "</b> " + path); - } - }; - - connect(this, &AbstractPackagingStep::packageFilePathChanged, - this, updateSummary); - - updateSummary(); - - return widget; -} - bool TarPackageCreationStep::fromMap(const QVariantMap &map) { if (!AbstractPackagingStep::fromMap(map)) |