Commit 4fe46e49 authored by Tobias Hunger's avatar Tobias Hunger

Ios: Convert some classes to Qt5-style connects

Change-Id: Ifb483a92c75d9851f0c3f4c69f080ac449b35e40
Reviewed-by: Jake Petroules's avatarJake Petroules <jake.petroules@qt.io>
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 39a4a837
......@@ -253,19 +253,18 @@ IosBuildStepConfigWidget::IosBuildStepConfigWidget(IosBuildStep *buildStep)
m_ui->resetDefaultsButton->setEnabled(!m_buildStep->m_useDefaultArguments);
updateDetails();
connect(m_ui->buildArgumentsTextEdit, SIGNAL(textChanged()),
this, SLOT(buildArgumentsChanged()));
connect(m_ui->resetDefaultsButton, SIGNAL(clicked()),
this, SLOT(resetDefaultArguments()));
connect(m_ui->extraArgumentsLineEdit, SIGNAL(editingFinished()),
this, SLOT(extraArgumentsChanged()));
connect(ProjectExplorerPlugin::instance(), SIGNAL(settingsChanged()),
this, SLOT(updateDetails()));
connect(m_buildStep->target(), SIGNAL(kitChanged()),
this, SLOT(updateDetails()));
connect(pro, SIGNAL(environmentChanged()),
this, SLOT(updateDetails()));
connect(m_ui->buildArgumentsTextEdit, &QPlainTextEdit::textChanged,
this, &IosBuildStepConfigWidget::buildArgumentsChanged);
connect(m_ui->resetDefaultsButton, &QAbstractButton::clicked,
this, &IosBuildStepConfigWidget::resetDefaultArguments);
connect(m_ui->extraArgumentsLineEdit, &QLineEdit::editingFinished,
this, &IosBuildStepConfigWidget::extraArgumentsChanged);
connect(ProjectExplorerPlugin::instance(), &ProjectExplorerPlugin::settingsChanged,
this, &IosBuildStepConfigWidget::updateDetails);
connect(m_buildStep->target(), &Target::kitChanged,
this, &IosBuildStepConfigWidget::updateDetails);
connect(pro, &Project::environmentChanged, this, &IosBuildStepConfigWidget::updateDetails);
}
IosBuildStepConfigWidget::~IosBuildStepConfigWidget()
......
......@@ -249,19 +249,18 @@ IosPresetBuildStepConfigWidget::IosPresetBuildStepConfigWidget(IosPresetBuildSte
m_ui->resetDefaultsButton->setEnabled(!m_buildStep->isDefault());
updateDetails();
connect(m_ui->argumentsTextEdit, SIGNAL(textChanged()),
SLOT(argumentsChanged()));
connect(m_ui->commandLineEdit, SIGNAL(editingFinished()),
SLOT(commandChanged()));
connect(m_ui->resetDefaultsButton, SIGNAL(clicked()),
SLOT(resetDefaults()));
connect(ProjectExplorerPlugin::instance(), SIGNAL(settingsChanged()),
SLOT(updateDetails()));
connect(m_buildStep->target(), SIGNAL(kitChanged()),
SLOT(updateDetails()));
connect(pro, SIGNAL(environmentChanged()),
SLOT(updateDetails()));
connect(m_ui->argumentsTextEdit, &QPlainTextEdit::textChanged,
this, &IosPresetBuildStepConfigWidget::argumentsChanged);
connect(m_ui->commandLineEdit, &QLineEdit::editingFinished,
this, &IosPresetBuildStepConfigWidget::commandChanged);
connect(m_ui->resetDefaultsButton, &QAbstractButton::clicked,
this, &IosPresetBuildStepConfigWidget::resetDefaults);
connect(ProjectExplorerPlugin::instance(), &ProjectExplorerPlugin::settingsChanged,
this, &IosPresetBuildStepConfigWidget::updateDetails);
connect(m_buildStep->target(), &Target::kitChanged,
this, &IosPresetBuildStepConfigWidget::updateDetails);
connect(pro, &Project::environmentChanged, this, &IosPresetBuildStepConfigWidget::updateDetails);
}
IosPresetBuildStepConfigWidget::~IosPresetBuildStepConfigWidget()
......
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