Skip to content

Commit

Permalink
Qt: Increase padding a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
spycrab committed Mar 6, 2019
1 parent a865cc0 commit 470b9e6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp
Expand Up @@ -359,7 +359,7 @@ void MappingWindow::SetMappingType(MappingWindow::Type type)


void MappingWindow::AddWidget(const QString& name, QWidget* widget) 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 int MappingWindow::GetPort() const
Expand Down
17 changes: 11 additions & 6 deletions Source/Core/DolphinQt/Config/PropertiesDialog.cpp
Expand Up @@ -44,16 +44,21 @@ PropertiesDialog::PropertiesDialog(QWidget* parent, const UICommon::GameFile& ga


connect(ar, &ARCodeWidget::OpenGeneralSettings, this, &PropertiesDialog::OpenGeneralSettings); connect(ar, &ARCodeWidget::OpenGeneralSettings, this, &PropertiesDialog::OpenGeneralSettings);


tab_widget->addTab(GetWrappedWidget(game_config, this, 90, 80), tr("Game Config")); const int padding_width = 120;
tab_widget->addTab(GetWrappedWidget(patches, this, 90, 80), tr("Patches")); const int padding_height = 100;
tab_widget->addTab(GetWrappedWidget(ar, this, 90, 80), tr("AR Codes")); tab_widget->addTab(GetWrappedWidget(game_config, this, padding_width, padding_height),
tab_widget->addTab(GetWrappedWidget(gecko, this, 90, 80), tr("Gecko Codes")); tr("Game Config"));
tab_widget->addTab(GetWrappedWidget(info, this, 90, 80), tr("Info")); 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())) if (DiscIO::IsDisc(game.GetPlatform()))
{ {
FilesystemWidget* filesystem = new FilesystemWidget(game); 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); layout->addWidget(tab_widget);
Expand Down

0 comments on commit 470b9e6

Please sign in to comment.