forked from qt-creator/qt-creator
Show a summary widget instead of the full blown environment model.
Hides the gory details, and in most cases the user doesn't care anyway.
This commit is contained in:
@@ -38,7 +38,6 @@ bool debug = false;
|
||||
|
||||
using namespace Qt4ProjectManager;
|
||||
using namespace Qt4ProjectManager::Internal;
|
||||
using ProjectExplorer::EnvironmentModel;
|
||||
|
||||
Qt4BuildEnvironmentWidget::Qt4BuildEnvironmentWidget(Qt4Project *project)
|
||||
: BuildStepConfigWidget(), m_pro(project)
|
||||
@@ -48,12 +47,20 @@ 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);
|
||||
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)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user