From 6188c577e3f36480cbbc35825979f15714e15624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 27 Mar 2018 22:21:41 +0200 Subject: [PATCH] NOISSUE fix page container spacing in UIs --- application/dialogs/NewInstanceDialog.cpp | 1 + application/widgets/PageContainer.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/application/dialogs/NewInstanceDialog.cpp b/application/dialogs/NewInstanceDialog.cpp index b95f192f..0631714c 100644 --- a/application/dialogs/NewInstanceDialog.cpp +++ b/application/dialogs/NewInstanceDialog.cpp @@ -70,6 +70,7 @@ NewInstanceDialog::NewInstanceDialog(const QString & initialGroup, const QString m_container = new PageContainer(this); m_container->setSizePolicy(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Expanding); + m_container->setContentsMargins(0, 0, 0, 0); ui->verticalLayout->insertWidget(2, m_container); m_container->addButtons(m_buttons); diff --git a/application/widgets/PageContainer.cpp b/application/widgets/PageContainer.cpp index 4dbd7fb2..98de57e8 100644 --- a/application/widgets/PageContainer.cpp +++ b/application/widgets/PageContainer.cpp @@ -158,7 +158,6 @@ void PageContainer::createUI() m_layout->addWidget(m_pageList, 0, 0, 2, 1); m_layout->addLayout(m_pageStack, 1, 1, 1, 1); m_layout->setColumnStretch(1, 4); - m_layout->setContentsMargins(0, 0, 0, 0); setLayout(m_layout); }