Commit 9f98c278 authored by Kaffeine's avatar Kaffeine Committed by Eike Ziller
Browse files

Project target page: Remove unneeded QHBoxLayout. Fix buttons spacing.



Change-Id: I82c4fde505d67de30787077c788af97822153b1e
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent c216863c
......@@ -76,15 +76,12 @@ ProfileManagerConfigWidget::ProfileManagerConfigWidget(Profile *p, QWidget *pare
iconLayout->addWidget(m_iconButton);
iconLayout->addStretch();
QHBoxLayout *spacer = new QHBoxLayout;
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);
masterLayout->setRowStretch(1, 1);
discard();
......
......@@ -80,6 +80,7 @@ QWidget *ProfileOptionsPage::createPage(QWidget *parent)
m_makeDefaultButton = new QPushButton(tr("Make Default"), m_configWidget);
QVBoxLayout *buttonLayout = new QVBoxLayout();
buttonLayout->setSpacing(6);
buttonLayout->setContentsMargins(0, 0, 0, 0);
buttonLayout->addWidget(m_addButton);
buttonLayout->addWidget(m_cloneButton);
......
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