diff --git a/src/plugins/qmakeprojectmanager/qmakestep.cpp b/src/plugins/qmakeprojectmanager/qmakestep.cpp index a38d9323874..0d2f3836f1b 100644 --- a/src/plugins/qmakeprojectmanager/qmakestep.cpp +++ b/src/plugins/qmakeprojectmanager/qmakestep.cpp @@ -476,10 +476,14 @@ QMakeStepConfigWidget::QMakeStepConfigWidget(QMakeStep *step) this, SLOT(qmakeArgumentsLineEdited())); connect(m_ui->buildConfigurationComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(buildConfigurationSelected())); - connect(m_ui->qmlDebuggingLibraryCheckBox, SIGNAL(toggled(bool)), - this, SLOT(linkQmlDebuggingLibraryChecked(bool))); + connect(m_ui->qmlDebuggingLibraryCheckBox, &QCheckBox::toggled, + this, &QMakeStepConfigWidget::linkQmlDebuggingLibraryChecked); + connect(m_ui->qmlDebuggingLibraryCheckBox, &QCheckBox::clicked, + this, &QMakeStepConfigWidget::askForRebuild); connect(m_ui->qtQuickCompilerCheckBox, &QAbstractButton::toggled, this, &QMakeStepConfigWidget::useQtQuickCompilerChecked); + connect(m_ui->qtQuickCompilerCheckBox, &QCheckBox::clicked, + this, &QMakeStepConfigWidget::askForRebuild); connect(step, SIGNAL(userArgumentsChanged()), this, SLOT(userArgumentsChanged())); connect(step, SIGNAL(linkQmlDebuggingLibraryChanged()), @@ -605,7 +609,6 @@ void QMakeStepConfigWidget::linkQmlDebuggingLibraryChecked(bool checked) updateSummaryLabel(); updateEffectiveQMakeCall(); updateQmlDebuggingOption(); - askForRebuild(); } void QMakeStepConfigWidget::askForRebuild() @@ -631,7 +634,6 @@ void QMakeStepConfigWidget::useQtQuickCompilerChecked(bool checked) updateSummaryLabel(); updateEffectiveQMakeCall(); updateQtQuickCompilerOption(); - askForRebuild(); } void QMakeStepConfigWidget::updateSummaryLabel() diff --git a/src/plugins/qmakeprojectmanager/qmakestep.h b/src/plugins/qmakeprojectmanager/qmakestep.h index ee8bbf67edb..352ff17e34e 100644 --- a/src/plugins/qmakeprojectmanager/qmakestep.h +++ b/src/plugins/qmakeprojectmanager/qmakestep.h @@ -165,6 +165,7 @@ private slots: void buildConfigurationSelected(); void linkQmlDebuggingLibraryChecked(bool checked); void useQtQuickCompilerChecked(bool checked); + void askForRebuild(); private slots: void recompileMessageBoxFinished(int button); @@ -174,7 +175,6 @@ private: void updateQmlDebuggingOption(); void updateQtQuickCompilerOption(); void updateEffectiveQMakeCall(); - void askForRebuild(); void setSummaryText(const QString &);