forked from qt-creator/qt-creator
projectexplorer: improve spacing in profile selection dialog
Change-Id: I9f6719618749b57cdfb68457e9ede8a580abd1af Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -56,6 +56,7 @@ ProfileManagerConfigWidget::ProfileManagerConfigWidget(Profile *p, QWidget *pare
|
|||||||
{
|
{
|
||||||
m_layout->setMargin(0);
|
m_layout->setMargin(0);
|
||||||
m_layout->setSpacing(6);
|
m_layout->setSpacing(6);
|
||||||
|
m_layout->setContentsMargins(0, 0, 0, 0);
|
||||||
|
|
||||||
QVBoxLayout *top = new QVBoxLayout(this);
|
QVBoxLayout *top = new QVBoxLayout(this);
|
||||||
top->setMargin(0);
|
top->setMargin(0);
|
||||||
@@ -73,15 +74,19 @@ ProfileManagerConfigWidget::ProfileManagerConfigWidget(Profile *p, QWidget *pare
|
|||||||
QWidget *widget = new QWidget;
|
QWidget *widget = new QWidget;
|
||||||
details->setWidget(widget);
|
details->setWidget(widget);
|
||||||
|
|
||||||
QHBoxLayout *masterLayout = new QHBoxLayout(widget);
|
|
||||||
masterLayout->setSpacing(12);
|
|
||||||
|
|
||||||
QVBoxLayout *iconLayout = new QVBoxLayout;
|
QVBoxLayout *iconLayout = new QVBoxLayout;
|
||||||
iconLayout->addWidget(m_iconButton);
|
iconLayout->addWidget(m_iconButton);
|
||||||
iconLayout->addStretch();
|
iconLayout->addStretch();
|
||||||
|
|
||||||
masterLayout->addLayout(iconLayout);
|
QHBoxLayout *spacer = new QHBoxLayout;
|
||||||
masterLayout->addLayout(m_layout);
|
spacer->addItem(new QSpacerItem(1, 1, QSizePolicy::Fixed, QSizePolicy::MinimumExpanding));
|
||||||
|
|
||||||
|
QGridLayout *masterLayout = new QGridLayout(widget);
|
||||||
|
masterLayout->setMargin(0);
|
||||||
|
masterLayout->setContentsMargins(6, 0, 6, 0);
|
||||||
|
masterLayout->addLayout(iconLayout, 0, 0);
|
||||||
|
masterLayout->addLayout(m_layout, 0, 1);
|
||||||
|
masterLayout->addLayout(spacer, 1, 0);
|
||||||
|
|
||||||
discard();
|
discard();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user