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

Only enable shadowbuilding widgets in the UI when that is supported

parent 18a134ec
......@@ -72,7 +72,6 @@ Qt4ProjectConfigWidget::Qt4ProjectConfigWidget(Qt4Project *project)
m_ui = new Ui::Qt4ProjectConfigWidget();
m_ui->setupUi(details);
m_browseButton = m_ui->shadowBuildDirEdit->buttonAtIndex(0);
// TODO refix the layout
......@@ -186,6 +185,10 @@ void Qt4ProjectConfigWidget::init(ProjectExplorer::BuildConfiguration *bc)
m_ui->shadowBuildDirEdit->setEnabled(shadowBuild);
m_browseButton->setEnabled(shadowBuild);
m_ui->shadowBuildDirEdit->setPath(m_buildConfiguration->shadowBuildDirectory());
m_ui->shadowBuildCheckBox->setEnabled(m_buildConfiguration->qtVersion()->supportsShadowBuilds());
m_ui->shadowBuildDirEdit->setEnabled(m_buildConfiguration->qtVersion()->supportsShadowBuilds());
updateImportLabel();
updateToolChainCombo();
updateDetails();
......@@ -193,6 +196,9 @@ void Qt4ProjectConfigWidget::init(ProjectExplorer::BuildConfiguration *bc)
void Qt4ProjectConfigWidget::qtVersionChanged()
{
m_ui->shadowBuildCheckBox->setEnabled(m_buildConfiguration->qtVersion()->supportsShadowBuilds());
m_ui->shadowBuildDirEdit->setEnabled(m_buildConfiguration->qtVersion()->supportsShadowBuilds());
updateImportLabel();
updateToolChainCombo();
updateDetails();
......
Supports Markdown
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