Commit a269232d authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Update Qt version combobox

 * Update the Qt version combobox whenever the buildconfig signals
   that its Qt version changed.

Task-number: QTCREATORBUG-1692
Reviewed-by: dt
parent ac25d70f
......@@ -215,6 +215,11 @@ void Qt4ProjectConfigWidget::qtVersionChanged()
if (m_ignoreChange)
return;
int versionId = m_buildConfiguration->qtVersion()->uniqueId();
int comboBoxIndex = m_ui->qtVersionComboBox->findData(QVariant(versionId), Qt::UserRole);
if (comboBoxIndex > -1)
m_ui->qtVersionComboBox->setCurrentIndex(comboBoxIndex);
updateShadowBuildUi();
updateImportLabel();
updateToolChainCombo();
......@@ -396,7 +401,6 @@ void Qt4ProjectConfigWidget::importLabelClicked()
// So we got all the information now apply it...
m_buildConfiguration->setQtVersion(version);
// Combo box will be updated at the end
QMakeStep *qmakeStep = m_buildConfiguration->qmakeStep();
qmakeStep->setUserArguments(additionalArguments);
......
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