CMake project settings margins and field growths.

This commit is contained in:
con
2009-07-23 17:00:38 +02:00
parent 579fe76f66
commit 2afea9ddf5
3 changed files with 7 additions and 0 deletions

View File

@@ -713,6 +713,8 @@ CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeProject *project)
: m_project(project) : m_project(project)
{ {
QFormLayout *fl = new QFormLayout(this); QFormLayout *fl = new QFormLayout(this);
fl->setContentsMargins(0, -1, 0, -1);
fl->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow);
setLayout(fl); setLayout(fl);
m_pathLineEdit = new QLineEdit(this); m_pathLineEdit = new QLineEdit(this);
m_pathLineEdit->setReadOnly(true); m_pathLineEdit->setReadOnly(true);

View File

@@ -237,6 +237,8 @@ CMakeRunConfigurationWidget::CMakeRunConfigurationWidget(CMakeRunConfiguration *
{ {
QFormLayout *fl = new QFormLayout(); QFormLayout *fl = new QFormLayout();
fl->setMargin(0);
fl->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow);
QLineEdit *argumentsLineEdit = new QLineEdit(); QLineEdit *argumentsLineEdit = new QLineEdit();
argumentsLineEdit->setText(ProjectExplorer::Environment::joinArgumentList(cmakeRunConfiguration->commandLineArguments())); argumentsLineEdit->setText(ProjectExplorer::Environment::joinArgumentList(cmakeRunConfiguration->commandLineArguments()));
connect(argumentsLineEdit, SIGNAL(textChanged(QString)), connect(argumentsLineEdit, SIGNAL(textChanged(QString)),
@@ -259,6 +261,7 @@ CMakeRunConfigurationWidget::CMakeRunConfigurationWidget(CMakeRunConfiguration *
fl->addRow(tr("Working Directory:"), boxlayout); fl->addRow(tr("Working Directory:"), boxlayout);
QVBoxLayout *vbx = new QVBoxLayout(this); QVBoxLayout *vbx = new QVBoxLayout(this);
vbx->setContentsMargins(0, -1, 0, -1);
vbx->addLayout(fl); vbx->addLayout(fl);
QLabel *environmentLabel = new QLabel(this); QLabel *environmentLabel = new QLabel(this);

View File

@@ -153,6 +153,8 @@ MakeStepConfigWidget::MakeStepConfigWidget(MakeStep *makeStep)
: m_makeStep(makeStep) : m_makeStep(makeStep)
{ {
QFormLayout *fl = new QFormLayout(this); QFormLayout *fl = new QFormLayout(this);
fl->setMargin(0);
fl->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow);
setLayout(fl); setLayout(fl);
m_additionalArguments = new QLineEdit(this); m_additionalArguments = new QLineEdit(this);