From 4e1e07a93c2403831c026f4e90bdb653dabc9c97 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 15 Dec 2024 16:09:00 +1000 Subject: [PATCH] Qt: Shrink BIOS settings page height Move open/refresh buttons. --- src/duckstation-qt/biossettingswidget.cpp | 6 +- src/duckstation-qt/biossettingswidget.ui | 113 ++++++++++------------ 2 files changed, 56 insertions(+), 63 deletions(-) diff --git a/src/duckstation-qt/biossettingswidget.cpp b/src/duckstation-qt/biossettingswidget.cpp index 59447e67d..6406ce287 100644 --- a/src/duckstation-qt/biossettingswidget.cpp +++ b/src/duckstation-qt/biossettingswidget.cpp @@ -92,13 +92,13 @@ BIOSSettingsWidget::BIOSSettingsWidget(SettingsWindow* dialog, QWidget* parent) } }); - connect(m_ui.refresh, &QPushButton::clicked, this, &BIOSSettingsWidget::refreshList); + connect(m_ui.rescan, &QPushButton::clicked, this, &BIOSSettingsWidget::refreshList); if (!m_dialog->isPerGameSettings()) { SettingWidgetBinder::BindWidgetToFolderSetting( - sif, m_ui.searchDirectory, m_ui.browseSearchDirectory, tr("Select BIOS Directory"), m_ui.openSearchDirectory, - nullptr, "BIOS", "SearchDirectory", Path::Combine(EmuFolders::DataRoot, "bios")); + sif, m_ui.searchDirectory, m_ui.browseSearchDirectory, tr("Select BIOS Directory"), m_ui.searchDirectoryOpen, + m_ui.searchDirectoryReset, "BIOS", "SearchDirectory", Path::Combine(EmuFolders::DataRoot, "bios")); connect(m_ui.searchDirectory, &QLineEdit::textChanged, this, &BIOSSettingsWidget::refreshList); } else diff --git a/src/duckstation-qt/biossettingswidget.ui b/src/duckstation-qt/biossettingswidget.ui index 2879c39fd..f6df5ffa6 100644 --- a/src/duckstation-qt/biossettingswidget.ui +++ b/src/duckstation-qt/biossettingswidget.ui @@ -29,8 +29,32 @@ BIOS Selection - - + + + + NTSC-J (Japan): + + + + + + + NTSC-U/C (US/Canada): + + + + + + + + 0 + 0 + + + + + + 0 @@ -46,22 +70,8 @@ - - - - NTSC-J (Japan): - - - - - - - NTSC-U/C (US/Canada): - - - - - + + 0 @@ -70,47 +80,6 @@ - - - - - 0 - 0 - - - - - - - - - - Qt::Orientation::Horizontal - - - - 40 - 20 - - - - - - - - Open in Explorer... - - - - - - - Refresh List - - - - - @@ -130,7 +99,17 @@ - + + + + Refresh BIOS List + + + + + + + @@ -142,6 +121,20 @@ + + + + Open... + + + + + + + Reset + + +