forked from qt-creator/qt-creator
Also hide the Clear environment checkbox for cmake.
This commit is contained in:
@@ -45,10 +45,17 @@ CMakeBuildEnvironmentWidget::CMakeBuildEnvironmentWidget(CMakeProject *project)
|
||||
QVBoxLayout *vbox = new QVBoxLayout(this);
|
||||
m_clearSystemEnvironmentCheckBox = new QCheckBox(this);
|
||||
m_clearSystemEnvironmentCheckBox->setText("Clear system environment");
|
||||
m_clearSystemEnvironmentCheckBox->setVisible(false);
|
||||
|
||||
vbox->addWidget(m_clearSystemEnvironmentCheckBox);
|
||||
m_buildEnvironmentWidget = new ProjectExplorer::EnvironmentWidget(this);
|
||||
vbox->addWidget(m_buildEnvironmentWidget);
|
||||
|
||||
connect(m_buildEnvironmentWidget, SIGNAL(switchedToDetails()),
|
||||
m_clearSystemEnvironmentCheckBox, SLOT(show()));
|
||||
connect(m_buildEnvironmentWidget, SIGNAL(switchedToSummary()),
|
||||
m_clearSystemEnvironmentCheckBox, SLOT(hide()));
|
||||
|
||||
connect(m_buildEnvironmentWidget, SIGNAL(userChangesUpdated()),
|
||||
this, SLOT(environmentModelUserChangesUpdated()));
|
||||
connect(m_clearSystemEnvironmentCheckBox, SIGNAL(toggled(bool)),
|
||||
|
||||
Reference in New Issue
Block a user