summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2025-05-12 22:17:49 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2025-05-26 20:58:48 -0500
commit543b85a4513d2d1da8b0220529c28de1a989a51e (patch)
treedb563b84a4233f2ca52170a7d97257d04d9fe417 /Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
parente796e82e8c7d3067216ae9694359319dbd4eccdb (diff)
DolphinQt: Make WrapInScrollArea and GetWrappedWidget less hacky.
Diffstat (limited to 'Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
index bce1e89b68..6b7e487bde 100644
--- a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
+++ b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
@@ -32,8 +32,6 @@
#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)),
@@ -105,7 +103,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 +137,6 @@ void GeckoCodeWidget::CreateWidgets()
btn_layout->addWidget(m_download_codes);
layout->addLayout(btn_layout);
-
- WrapInScrollArea(this, layout);
}
void GeckoCodeWidget::ConnectWidgets()