forked from qt-creator/qt-creator
Deploy steps: Introduce SimpleBuildStepConfigWidget.
This simplifies some deploy steps and replaces RemoteLinuxDeployStepWidget. Change-Id: I4ad82c498cee0f15e1c93bf915cd48355017eb84 Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com> Reviewed-by: Paweł Polański <pawel.3.polanski@nokia.com>
This commit is contained in:
@@ -47,32 +47,25 @@ using namespace ProjectExplorer;
|
||||
namespace RemoteLinux {
|
||||
namespace {
|
||||
|
||||
class CreateTarStepWidget : public BuildStepConfigWidget
|
||||
class CreateTarStepWidget : public SimpleBuildStepConfigWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CreateTarStepWidget(TarPackageCreationStep *step) : m_step(step)
|
||||
CreateTarStepWidget(TarPackageCreationStep *step) : SimpleBuildStepConfigWidget(step)
|
||||
{
|
||||
connect(m_step, SIGNAL(packageFilePathChanged()), SIGNAL(updateSummary()));
|
||||
connect(step, SIGNAL(packageFilePathChanged()), SIGNAL(updateSummary()));
|
||||
}
|
||||
|
||||
QString summaryText() const
|
||||
{
|
||||
if (m_step->packageFilePath().isEmpty()) {
|
||||
TarPackageCreationStep * const step = qobject_cast<TarPackageCreationStep *>(this->step());
|
||||
if (step->packageFilePath().isEmpty()) {
|
||||
return QLatin1String("<font color=\"red\">")
|
||||
+ tr("Tarball creation not possible.") + QLatin1String("</font>");
|
||||
}
|
||||
|
||||
return QLatin1String("<b>") + tr("Create tarball:") + QLatin1String("</b> ")
|
||||
+ m_step->packageFilePath();
|
||||
+ step->packageFilePath();
|
||||
}
|
||||
|
||||
QString displayName() const { return QString(); }
|
||||
|
||||
bool showWidget() const { return false; }
|
||||
|
||||
private:
|
||||
const TarPackageCreationStep * const m_step;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user