Commit 4bfa655a authored by hjk's avatar hjk Committed by Eike Ziller

projectexplorer: add some visual grouping on the run settings page

Change-Id: If529364653481f9ad4c0005564fae7ff476b1871
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent cb430f1d
......@@ -145,33 +145,48 @@ RunSettingsWidget::RunSettingsWidget(Target *target)
m_removeRunToolButton = new QPushButton(tr("Remove"), this);
m_renameRunButton = new QPushButton(tr("Rename"), this);
QSpacerItem *runHorizontalSpacer =
new QSpacerItem(17, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
QSpacerItem *spacer1 =
new QSpacerItem(10, 10, QSizePolicy::Expanding, QSizePolicy::Minimum);
QSpacerItem *spacer2 =
new QSpacerItem(10, 10, QSizePolicy::Minimum, QSizePolicy::Expanding);
QWidget *runWidget = new QWidget(this);
QLabel *deployTitle = new QLabel(tr("Deployment"), this);
QLabel *deployLabel = new QLabel(tr("Method:"), this);
QLabel *runTitle = new QLabel(tr("Run"), this);
QLabel *runLabel = new QLabel(tr("Run configuration:"), this);
runLabel->setBuddy(m_runConfigurationCombo);
QLabel *deployLabel = new QLabel(tr("Deployment:"), this);
QFont f = runLabel->font();
f.setBold(true);
f.setPointSizeF(f.pointSizeF() * 1.2);
runTitle->setFont(f);
deployTitle->setFont(f);
m_gridLayout = new QGridLayout(this);
m_gridLayout->setSpacing(0);
m_gridLayout->setContentsMargins(0, 0, 0, 0);
m_gridLayout->setContentsMargins(0, 20, 0, 0);
m_gridLayout->setHorizontalSpacing(6);
m_gridLayout->addWidget(deployLabel, 0, 0, 1, 1);
m_gridLayout->addWidget(m_deployConfigurationCombo, 0, 1, 1, 1);
m_gridLayout->addWidget(m_addDeployToolButton, 0, 2, 1, 1);
m_gridLayout->addWidget(m_removeDeployToolButton, 0, 3, 1, 1);
m_gridLayout->addWidget(m_renameDeployButton, 0, 4, 1, 1);
m_gridLayout->addWidget(deployWidget, 1, 0, 1, 6);
m_gridLayout->addWidget(runLabel, 2, 0, 1, 1);
m_gridLayout->addWidget(m_runConfigurationCombo, 2, 1, 1, 1);
m_gridLayout->addWidget(m_addRunToolButton, 2, 2, 1, 1);
m_gridLayout->addWidget(m_removeRunToolButton, 2, 3, 1, 1);
m_gridLayout->addWidget(m_renameRunButton, 2, 4, 1, 1);
m_gridLayout->addItem(runHorizontalSpacer, 2, 5, 1, 1);
m_gridLayout->addWidget(runWidget, 3, 0, 1, 6);
m_gridLayout->setVerticalSpacing(8);
m_gridLayout->addWidget(deployTitle, 0, 0, 1, 6);
m_gridLayout->addWidget(deployLabel, 1, 0, 1, 1);
m_gridLayout->addWidget(m_deployConfigurationCombo, 1, 1, 1, 1);
m_gridLayout->addWidget(m_addDeployToolButton, 1, 2, 1, 1);
m_gridLayout->addWidget(m_removeDeployToolButton, 1, 3, 1, 1);
m_gridLayout->addWidget(m_renameDeployButton, 1, 4, 1, 1);
m_gridLayout->addWidget(deployWidget, 2, 0, 1, 6);
m_gridLayout->addWidget(runTitle, 3, 0, 1, 6);
m_gridLayout->addWidget(runLabel, 4, 0, 1, 1);
m_gridLayout->addWidget(m_runConfigurationCombo, 4, 1, 1, 1);
m_gridLayout->addWidget(m_addRunToolButton, 4, 2, 1, 1);
m_gridLayout->addWidget(m_removeRunToolButton, 4, 3, 1, 1);
m_gridLayout->addWidget(m_renameRunButton, 4, 4, 1, 1);
m_gridLayout->addItem(spacer1, 4, 5, 1, 1);
m_gridLayout->addWidget(runWidget, 5, 0, 1, 6);
m_gridLayout->addItem(spacer2, 6, 0, 1, 1);
// deploy part
deployWidget->setContentsMargins(0, 10, 0, 25);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment