From f0dc3d5ae66062b87ff056eb744cb6a828d40650 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 15 May 2015 13:08:55 +0200 Subject: [PATCH] Layout fixes in welcome page. --- src/modules/welcome/WelcomePage.cpp | 4 +++- src/modules/welcome/WelcomePage.ui | 33 ++++++++++++++++------------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/src/modules/welcome/WelcomePage.cpp b/src/modules/welcome/WelcomePage.cpp index 8d542ecd1..8fcfc0d8a 100644 --- a/src/modules/welcome/WelcomePage.cpp +++ b/src/modules/welcome/WelcomePage.cpp @@ -45,6 +45,7 @@ WelcomePage::WelcomePage( RequirementsChecker* requirementsChecker, QWidget* par { ui->setupUi( this ); + ui->verticalLayout->insertSpacing( 1, CalamaresUtils::defaultFontHeight() * 6 ); initLanguages(); ui->mainText->setAlignment( Qt::AlignCenter ); @@ -90,7 +91,8 @@ WelcomePage::WelcomePage( RequirementsChecker* requirementsChecker, QWidget* par Calamares::Branding::VersionedName ) ) ); } ); - ui->verticalLayout->insertWidget( 3, m_requirementsChecker->widget() ); + ui->verticalLayout->insertStretch( 4 ); + ui->verticalLayout->insertWidget( 5, m_requirementsChecker->widget() ); } diff --git a/src/modules/welcome/WelcomePage.ui b/src/modules/welcome/WelcomePage.ui index 3a39ab0d6..ec47a4ea6 100644 --- a/src/modules/welcome/WelcomePage.ui +++ b/src/modules/welcome/WelcomePage.ui @@ -17,26 +17,13 @@ - + Qt::Vertical QSizePolicy::Fixed - - - 20 - 20 - - - - - - - - Qt::Vertical - 20 @@ -58,6 +45,22 @@ + + + + Qt::Vertical + + + QSizePolicy::Fixed + + + + 20 + 20 + + + + @@ -66,7 +69,7 @@ 20 - 40 + 20