From 470b9e68e7378a55012e0118b80680d57a8387a0 Mon Sep 17 00:00:00 2001 From: spycrab Date: Wed, 6 Mar 2019 13:46:00 +0100 Subject: [PATCH] Qt: Increase padding a bit --- .../DolphinQt/Config/Mapping/MappingWindow.cpp | 2 +- .../Core/DolphinQt/Config/PropertiesDialog.cpp | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp index bbbdbfb4ee..1317613ace 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp @@ -359,7 +359,7 @@ void MappingWindow::SetMappingType(MappingWindow::Type type) void MappingWindow::AddWidget(const QString& name, QWidget* widget) { - m_tab_widget->addTab(GetWrappedWidget(widget, this, 150, 205), name); + m_tab_widget->addTab(GetWrappedWidget(widget, this, 150, 210), name); } int MappingWindow::GetPort() const diff --git a/Source/Core/DolphinQt/Config/PropertiesDialog.cpp b/Source/Core/DolphinQt/Config/PropertiesDialog.cpp index 52cb9a89e2..6a29c9ffee 100644 --- a/Source/Core/DolphinQt/Config/PropertiesDialog.cpp +++ b/Source/Core/DolphinQt/Config/PropertiesDialog.cpp @@ -44,16 +44,21 @@ PropertiesDialog::PropertiesDialog(QWidget* parent, const UICommon::GameFile& ga connect(ar, &ARCodeWidget::OpenGeneralSettings, this, &PropertiesDialog::OpenGeneralSettings); - tab_widget->addTab(GetWrappedWidget(game_config, this, 90, 80), tr("Game Config")); - tab_widget->addTab(GetWrappedWidget(patches, this, 90, 80), tr("Patches")); - tab_widget->addTab(GetWrappedWidget(ar, this, 90, 80), tr("AR Codes")); - tab_widget->addTab(GetWrappedWidget(gecko, this, 90, 80), tr("Gecko Codes")); - tab_widget->addTab(GetWrappedWidget(info, this, 90, 80), tr("Info")); + const int padding_width = 120; + const int padding_height = 100; + tab_widget->addTab(GetWrappedWidget(game_config, this, padding_width, padding_height), + tr("Game Config")); + tab_widget->addTab(GetWrappedWidget(patches, this, padding_width, padding_height), tr("Patches")); + tab_widget->addTab(GetWrappedWidget(ar, this, padding_width, padding_height), tr("AR Codes")); + tab_widget->addTab(GetWrappedWidget(gecko, this, padding_width, padding_height), + tr("Gecko Codes")); + tab_widget->addTab(GetWrappedWidget(info, this, padding_width, padding_height), tr("Info")); if (DiscIO::IsDisc(game.GetPlatform())) { FilesystemWidget* filesystem = new FilesystemWidget(game); - tab_widget->addTab(GetWrappedWidget(filesystem, this, 90, 80), tr("Filesystem")); + tab_widget->addTab(GetWrappedWidget(filesystem, this, padding_width, padding_height), + tr("Filesystem")); } layout->addWidget(tab_widget);