From 370bbada876752fbae2a92999acab5ce5474a5ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 28 Mar 2018 21:57:41 +0200 Subject: [PATCH] NOISSUE polish the new instance UI a bit more --- application/dialogs/NewInstanceDialog.cpp | 2 +- application/pages/modplatform/FTBPage.cpp | 1 + application/pages/modplatform/FTBPage.ui | 91 +++++++++++--------- application/pages/modplatform/VanillaPage.ui | 2 +- 4 files changed, 51 insertions(+), 45 deletions(-) diff --git a/application/dialogs/NewInstanceDialog.cpp b/application/dialogs/NewInstanceDialog.cpp index 0631714c..900b33f7 100644 --- a/application/dialogs/NewInstanceDialog.cpp +++ b/application/dialogs/NewInstanceDialog.cpp @@ -70,7 +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); + m_container->layout()->setContentsMargins(0, 0, 0, 0); ui->verticalLayout->insertWidget(2, m_container); m_container->addButtons(m_buttons); diff --git a/application/pages/modplatform/FTBPage.cpp b/application/pages/modplatform/FTBPage.cpp index a8ec6577..26b1e30b 100644 --- a/application/pages/modplatform/FTBPage.cpp +++ b/application/pages/modplatform/FTBPage.cpp @@ -13,6 +13,7 @@ FTBPage::FTBPage(NewInstanceDialog* dialog, QWidget *parent) : QWidget(parent), dialog(dialog), ui(new Ui::FTBPage) { ui->setupUi(this); + ui->tabWidget->tabBar()->hide(); ftbPackDownloader = new FtbPackDownloader(); connect(ftbPackDownloader, &FtbPackDownloader::ready, this, &FTBPage::ftbPackDataDownloadSuccessfully); diff --git a/application/pages/modplatform/FTBPage.ui b/application/pages/modplatform/FTBPage.ui index c54fc392..a64c9606 100644 --- a/application/pages/modplatform/FTBPage.ui +++ b/application/pages/modplatform/FTBPage.ui @@ -6,52 +6,57 @@ 0 0 - 801 - 674 + 709 + 602 - - - - - - 0 - 0 - - - - - - - - - - - - 0 - 0 - - - - - - - - Version selected: - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - - - - - - 0 - 0 - + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 0 + + + + + + + + + + + + + + + + + + Version selected: + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + diff --git a/application/pages/modplatform/VanillaPage.ui b/application/pages/modplatform/VanillaPage.ui index 713d04a0..ae9cab47 100644 --- a/application/pages/modplatform/VanillaPage.ui +++ b/application/pages/modplatform/VanillaPage.ui @@ -30,7 +30,7 @@ - Tab 1 +