OSDN Git Service

QMakeStep: fix linkDebuggingHelper
authordt_ <qtc-committer@nokia.com>
Mon, 30 May 2011 11:01:33 +0000 (13:01 +0200)
committerKai Koehne <kai.koehne@nokia.com>
Mon, 30 May 2011 11:46:42 +0000 (13:46 +0200)
Just showing the widget was setting the linkDebuggingHelper setting.

Change-Id: I0188d713394e35c3519d9bbd822cb970363a68eb
Reviewed-on: http://codereview.qt.nokia.com/215
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
src/plugins/qt4projectmanager/qmakestep.cpp

index 2187f59..fc3be8b 100644 (file)
@@ -470,6 +470,16 @@ QMakeStepConfigWidget::QMakeStepConfigWidget(QMakeStep *step)
       m_ignoreChange(false)
 {
     m_ui->setupUi(this);
+
+    m_ui->qmakeAdditonalArgumentsLineEdit->setText(m_step->userArguments());
+    m_ui->qmlDebuggingLibraryCheckBox->setChecked(m_step->linkQmlDebuggingLibrary());
+
+    qmakeBuildConfigChanged();
+
+    updateSummaryLabel();
+    updateEffectiveQMakeCall();
+    updateQmlDebuggingOption();
+
     connect(m_ui->qmakeAdditonalArgumentsLineEdit, SIGNAL(textEdited(const QString&)),
             this, SLOT(qmakeArgumentsLineEdited()));
     connect(m_ui->buildConfigurationComboBox, SIGNAL(currentIndexChanged(int)),
@@ -499,14 +509,7 @@ QMakeStepConfigWidget::~QMakeStepConfigWidget()
 
 void QMakeStepConfigWidget::init()
 {
-    m_ui->qmakeAdditonalArgumentsLineEdit->setText(m_step->userArguments());
-    m_ui->qmlDebuggingLibraryCheckBox->setChecked(m_step->linkQmlDebuggingLibrary());
-
-    qmakeBuildConfigChanged();
 
-    updateSummaryLabel();
-    updateEffectiveQMakeCall();
-    updateQmlDebuggingOption();
 }
 
 QString QMakeStepConfigWidget::summaryText() const