forked from qt-creator/qt-creator
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
This commit is contained in:
@@ -215,6 +215,11 @@ void Qt4ProjectConfigWidget::qtVersionChanged()
|
|||||||
if (m_ignoreChange)
|
if (m_ignoreChange)
|
||||||
return;
|
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();
|
updateShadowBuildUi();
|
||||||
updateImportLabel();
|
updateImportLabel();
|
||||||
updateToolChainCombo();
|
updateToolChainCombo();
|
||||||
@@ -396,7 +401,6 @@ void Qt4ProjectConfigWidget::importLabelClicked()
|
|||||||
|
|
||||||
// So we got all the information now apply it...
|
// So we got all the information now apply it...
|
||||||
m_buildConfiguration->setQtVersion(version);
|
m_buildConfiguration->setQtVersion(version);
|
||||||
// Combo box will be updated at the end
|
|
||||||
|
|
||||||
QMakeStep *qmakeStep = m_buildConfiguration->qmakeStep();
|
QMakeStep *qmakeStep = m_buildConfiguration->qmakeStep();
|
||||||
qmakeStep->setUserArguments(additionalArguments);
|
qmakeStep->setUserArguments(additionalArguments);
|
||||||
|
|||||||
Reference in New Issue
Block a user