Make the show/hide environment details buttons stay at same place.

This commit is contained in:
con
2009-07-23 15:57:45 +02:00
parent 2afea9ddf5
commit 45d2fd0797
7 changed files with 50 additions and 103 deletions

View File

@@ -47,21 +47,13 @@ Qt4BuildEnvironmentWidget::Qt4BuildEnvironmentWidget(Qt4Project *project)
m_clearSystemEnvironmentCheckBox = new QCheckBox(this);
m_clearSystemEnvironmentCheckBox->setText("Clear system environment");
vbox->addWidget(m_clearSystemEnvironmentCheckBox);
m_clearSystemEnvironmentCheckBox->setVisible(false);
m_buildEnvironmentWidget = new ProjectExplorer::EnvironmentWidget(this);
m_buildEnvironmentWidget = new ProjectExplorer::EnvironmentWidget(this, m_clearSystemEnvironmentCheckBox);
vbox->addWidget(m_buildEnvironmentWidget);
connect(m_buildEnvironmentWidget, SIGNAL(userChangesUpdated()),
this, SLOT(environmentModelUserChangesUpdated()));
connect(m_buildEnvironmentWidget, SIGNAL(switchedToDetails()),
m_clearSystemEnvironmentCheckBox, SLOT(show()));
connect(m_buildEnvironmentWidget, SIGNAL(switchedToSummary()),
m_clearSystemEnvironmentCheckBox, SLOT(hide()));
connect(m_clearSystemEnvironmentCheckBox, SIGNAL(toggled(bool)),
this, SLOT(clearSystemEnvironmentCheckBoxClicked(bool)));
}