RunConfiguration: Centralize enabled state handling

Centralize handling of enabled state of RunConfiguration widgets.

Remove code that does the same thing in all the different run configuration
widgets.

Change-Id: I175d7e19d031bd28a2b19cd825e0b6568da19bc3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2017-07-17 16:54:13 +02:00
parent 131c7a1c4e
commit 366ada9fea
15 changed files with 39 additions and 146 deletions

View File

@@ -270,8 +270,6 @@ PythonRunConfigurationWidget::PythonRunConfigurationWidget(PythonRunConfiguratio
auto vbx = new QVBoxLayout(this);
vbx->setMargin(0);
vbx->addWidget(m_detailsContainer);
setEnabled(runConfiguration->isEnabled());
}
class PythonRunConfigurationFactory : public IRunConfigurationFactory