On qt version change updat qmakestep config widget

That is the effective qmake command and summary label.
This commit is contained in:
dt
2009-10-29 19:42:56 +01:00
parent 074b719b79
commit 4798ec5529
4 changed files with 13 additions and 0 deletions

View File

@@ -209,6 +209,8 @@ QMakeStepConfigWidget::QMakeStepConfigWidget(QMakeStep *step)
connect(m_ui.buildConfigurationComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(buildConfigurationChanged()));
connect(step, SIGNAL(changed()),
this, SLOT(update()));
connect(step->project(), SIGNAL(qtVersionChanged(ProjectExplorer::BuildConfiguration *)),
this, SLOT(qtVersionChanged(ProjectExplorer::BuildConfiguration *)));
}
QString QMakeStepConfigWidget::summaryText() const
@@ -216,6 +218,14 @@ QString QMakeStepConfigWidget::summaryText() const
return m_summaryText;
}
void QMakeStepConfigWidget::qtVersionChanged(ProjectExplorer::BuildConfiguration *bc)
{
if (bc && bc->name() == m_buildConfiguration) {
updateTitleLabel();
updateEffectiveQMakeCall();
}
}
void QMakeStepConfigWidget::updateTitleLabel()
{
Qt4Project *qt4project = qobject_cast<Qt4Project *>(m_step->project());