Merge pull request #7070 from spycrab/qt_prop_width

Qt/PropertiesDialog: Fix tabs being cut off due to small window size
This commit is contained in:
Léo Lam 2018-06-04 23:49:28 +02:00 committed by GitHub
commit d1e2cc7b92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -44,16 +44,16 @@ PropertiesDialog::PropertiesDialog(QWidget* parent, const UICommon::GameFile& ga
connect(ar, &ARCodeWidget::OpenGeneralSettings, this, &PropertiesDialog::OpenGeneralSettings);
tab_widget->addTab(GetWrappedWidget(game_config, this, 50, 80), tr("Game Config"));
tab_widget->addTab(GetWrappedWidget(patches, this, 50, 80), tr("Patches"));
tab_widget->addTab(GetWrappedWidget(ar, this, 50, 80), tr("AR Codes"));
tab_widget->addTab(GetWrappedWidget(gecko, this, 50, 80), tr("Gecko Codes"));
tab_widget->addTab(GetWrappedWidget(info, this, 50, 80), tr("Info"));
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"));
if (DiscIO::IsDisc(game.GetPlatform()))
{
FilesystemWidget* filesystem = new FilesystemWidget(game);
tab_widget->addTab(GetWrappedWidget(filesystem, this, 50, 80), tr("Filesystem"));
tab_widget->addTab(GetWrappedWidget(filesystem, this, 90, 80), tr("Filesystem"));
}
layout->addWidget(tab_widget);