diff options
| author | JMC47 <JMC4789@gmail.com> | 2025-06-04 16:01:51 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-04 16:01:51 -0400 |
| commit | 8665b228223458233bb3f59acb99cd0a4da109e9 (patch) | |
| tree | e8c585dd0a3086e532bc509f7464ecc4dd6f9c0e /Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp | |
| parent | 3f090dd47470e98e9ad014f83c6c5a975e2ae2cf (diff) | |
| parent | aafe961177f252aacbb1b439b89c3590b79cf08b (diff) | |
Merge pull request #13651 from jordan-woyak/config-list
DolphinQt: Change Config QTabWidget into a QListWidget and QStackedWidget.
Diffstat (limited to 'Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp index bce1e89b68..de0f79a904 100644 --- a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp +++ b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp @@ -29,11 +29,10 @@ #include "DolphinQt/Config/HardcoreWarningWidget.h" #include "DolphinQt/QtUtils/ModalMessageBox.h" #include "DolphinQt/QtUtils/NonDefaultQPushButton.h" +#include "DolphinQt/QtUtils/QtUtils.h" #include "DolphinQt/QtUtils/SetWindowDecorations.h" #include "DolphinQt/QtUtils/WrapInScrollArea.h" -#include "UICommon/GameFile.h" - GeckoCodeWidget::GeckoCodeWidget(std::string game_id, std::string gametdb_id, u16 game_revision, bool restart_required) : m_game_id(std::move(game_id)), m_gametdb_id(std::move(gametdb_id)), @@ -76,7 +75,7 @@ void GeckoCodeWidget::CreateWidgets() #ifdef USE_RETRO_ACHIEVEMENTS m_hc_warning = new HardcoreWarningWidget(this); #endif // USE_RETRO_ACHIEVEMENTS - m_code_list = new QListWidget; + m_code_list = new QtUtils::MinimumSizeHintWidget<QListWidget>; m_name_label = new QLabel; m_creator_label = new QLabel; @@ -105,7 +104,7 @@ void GeckoCodeWidget::CreateWidgets() m_download_codes->setToolTip(tr("Download Codes from the WiiRD Database")); - auto* layout = new QVBoxLayout; + auto* const layout = new QVBoxLayout{this}; layout->addWidget(m_warning); #ifdef USE_RETRO_ACHIEVEMENTS @@ -139,8 +138,6 @@ void GeckoCodeWidget::CreateWidgets() btn_layout->addWidget(m_download_codes); layout->addLayout(btn_layout); - - WrapInScrollArea(this, layout); } void GeckoCodeWidget::ConnectWidgets() |
