Commit 1ddee692 authored by David Schulz's avatar David Schulz

WinRT: fix saving changed deployment steps

Explicitly connect ui elements to slots.

Change-Id: I1235f29a1596636dffc943c276da4a251deca884
Reviewed-by: default avatarhjk <hjk@qt.io>
parent ee540da4
......@@ -38,6 +38,10 @@ WinRtPackageDeploymentStepWidget::WinRtPackageDeploymentStepWidget(WinRtPackageD
m_ui->setupUi(this);
m_ui->leArguments->setText(m_step->winDeployQtArguments());
m_ui->btnRestoreDefaultArgs->setIcon(Utils::Icons::RESET.icon());
connect(m_ui->btnRestoreDefaultArgs, &QToolButton::pressed,
this, &WinRtPackageDeploymentStepWidget::restoreDefaultArguments);
connect(m_ui->leArguments, &QLineEdit::textChanged,
m_step, &WinRtPackageDeploymentStep::setWinDeployQtArguments);
}
WinRtPackageDeploymentStepWidget::~WinRtPackageDeploymentStepWidget()
......@@ -55,15 +59,10 @@ QString WinRtPackageDeploymentStepWidget::displayName() const
return m_step->displayName();
}
void WinRtPackageDeploymentStepWidget::on_btnRestoreDefaultArgs_clicked()
void WinRtPackageDeploymentStepWidget::restoreDefaultArguments()
{
m_ui->leArguments->setText(m_step->defaultWinDeployQtArguments());
}
void WinRtPackageDeploymentStepWidget::on_leArguments_textChanged(QString str)
{
m_step->setWinDeployQtArguments(str);
}
} // namespace Internal
} // namespace WinRt
......@@ -45,8 +45,7 @@ public:
virtual QString displayName() const;
private:
void on_btnRestoreDefaultArgs_clicked();
void on_leArguments_textChanged(QString str);
void restoreDefaultArguments();
Ui::WinRtPackageDeploymentStepWidget *m_ui;
WinRtPackageDeploymentStep *m_step;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment