diff options
author | dt <qtc-committer@nokia.com> | 2009-05-26 17:21:02 +0200 |
---|---|---|
committer | dt <qtc-committer@nokia.com> | 2009-05-27 14:58:16 +0200 |
commit | 5d75804b931f01f9718b44e0e82e6b51b775fed7 (patch) | |
tree | 39178f11a057e985adb66e2fc6f7c962426f20ee /src/plugins/projectexplorer/environmenteditmodel.cpp | |
parent | adc7a7204b64ca305d3904386ebb616d3be48e4a (diff) | |
download | qt-creator-5d75804b931f01f9718b44e0e82e6b51b775fed7.tar.gz |
Refactor the checkbox "Clear system environment" out.
I don't want it in the run configurations.
Diffstat (limited to 'src/plugins/projectexplorer/environmenteditmodel.cpp')
-rw-r--r-- | src/plugins/projectexplorer/environmenteditmodel.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/plugins/projectexplorer/environmenteditmodel.cpp b/src/plugins/projectexplorer/environmenteditmodel.cpp index 28ee8eae3f..08d1cd215d 100644 --- a/src/plugins/projectexplorer/environmenteditmodel.cpp +++ b/src/plugins/projectexplorer/environmenteditmodel.cpp @@ -432,12 +432,7 @@ EnvironmentWidget::EnvironmentWidget(QWidget *parent) connect(m_model, SIGNAL(userChangesUpdated()), this, SIGNAL(userChangesUpdated())); - QVBoxLayout *verticalLayout = new QVBoxLayout(this); - m_clearSystemEnvironmentCheckBox = new QCheckBox(this); - m_clearSystemEnvironmentCheckBox->setText("Clear system environment"); - verticalLayout->addWidget(m_clearSystemEnvironmentCheckBox); - - QHBoxLayout *horizontalLayout = new QHBoxLayout(); + QHBoxLayout *horizontalLayout = new QHBoxLayout(this); m_environmentTreeView = new QTreeView(this); m_environmentTreeView->setRootIsDecorated(false); m_environmentTreeView->setHeaderHidden(false); @@ -468,7 +463,6 @@ EnvironmentWidget::EnvironmentWidget(QWidget *parent) QSpacerItem *verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding); verticalLayout_2->addItem(verticalSpacer); horizontalLayout->addLayout(verticalLayout_2); - verticalLayout->addLayout(horizontalLayout); connect(m_model, SIGNAL(dataChanged(const QModelIndex&, const QModelIndex&)), this, SLOT(updateButtons())); @@ -483,8 +477,6 @@ EnvironmentWidget::EnvironmentWidget(QWidget *parent) this, SLOT(unsetEnvironmentButtonClicked())); connect(m_environmentTreeView->selectionModel(), SIGNAL(currentChanged(QModelIndex, QModelIndex)), this, SLOT(environmentCurrentIndexChanged(QModelIndex, QModelIndex))); - connect(m_clearSystemEnvironmentCheckBox, SIGNAL(toggled(bool)), - this, SIGNAL(clearSystemEnvironmentCheckBoxClicked(bool))); } EnvironmentWidget::~EnvironmentWidget() @@ -493,11 +485,6 @@ EnvironmentWidget::~EnvironmentWidget() m_model = 0; } -void EnvironmentWidget::setClearSystemEnvironment(bool b) -{ - m_clearSystemEnvironmentCheckBox->setChecked(b); -} - void EnvironmentWidget::setBaseEnvironment(const ProjectExplorer::Environment &env) { m_model->setBaseEnvironment(env); |