summaryrefslogtreecommitdiffstats
path: root/application/widgets/PageContainer.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-08-02 23:52:19 +0200
committerPetr Mrázek <peterix@gmail.com>2019-08-02 23:52:19 +0200
commit7b00d47fe0be0e23d1267699a8491c1dc577f76d (patch)
treecc14a07062dba29475e5aa94dad654c673c0d7f6 /application/widgets/PageContainer.cpp
parent930d39b5f2c28bbc5d7156e6e1e20e0fa8194900 (diff)
downloadMultiMC-7b00d47fe0be0e23d1267699a8491c1dc577f76d.tar
MultiMC-7b00d47fe0be0e23d1267699a8491c1dc577f76d.tar.gz
MultiMC-7b00d47fe0be0e23d1267699a8491c1dc577f76d.tar.lz
MultiMC-7b00d47fe0be0e23d1267699a8491c1dc577f76d.tar.xz
MultiMC-7b00d47fe0be0e23d1267699a8491c1dc577f76d.zip
NOISSUE tweak UI geometry and remove old language selection
Diffstat (limited to 'application/widgets/PageContainer.cpp')
-rw-r--r--application/widgets/PageContainer.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/application/widgets/PageContainer.cpp b/application/widgets/PageContainer.cpp
index a3d3e257..376e119b 100644
--- a/application/widgets/PageContainer.cpp
+++ b/application/widgets/PageContainer.cpp
@@ -140,15 +140,13 @@ void PageContainer::createUI()
QHBoxLayout *headerHLayout = new QHBoxLayout;
const int leftMargin = MMC->style()->pixelMetric(QStyle::PM_LayoutLeftMargin);
- headerHLayout->addSpacerItem(
- new QSpacerItem(leftMargin, 0, QSizePolicy::Fixed, QSizePolicy::Ignored));
+ headerHLayout->addSpacerItem(new QSpacerItem(leftMargin, 0, QSizePolicy::Fixed, QSizePolicy::Ignored));
headerHLayout->addWidget(m_header);
- headerHLayout->addSpacerItem(
- new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Ignored));
+ headerHLayout->addSpacerItem(new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Ignored));
headerHLayout->addWidget(m_iconHeader);
const int rightMargin = MMC->style()->pixelMetric(QStyle::PM_LayoutRightMargin);
- headerHLayout->addSpacerItem(
- new QSpacerItem(rightMargin, 0, QSizePolicy::Fixed, QSizePolicy::Ignored));
+ headerHLayout->addSpacerItem(new QSpacerItem(rightMargin, 0, QSizePolicy::Fixed, QSizePolicy::Ignored));
+ headerHLayout->setContentsMargins(0, 6, 0, 0);
m_pageStack->setMargin(0);
m_pageStack->addWidget(new QWidget(this));
@@ -158,6 +156,7 @@ 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,6);
setLayout(m_layout);
}