summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2022-06-02 23:58:13 -0700
committerShawn Hoffman <godisgovernment@gmail.com>2022-06-02 23:58:13 -0700
commitb16711f2aff6386a31cd37c074e772deb644faab (patch)
tree74e7886b03ae94e602fc5eebe623b063d08e4eaa /Source
parentf7f47d3cd08991915a9fe14070653697d715929d (diff)
qt: fix wiipane usb list layout
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt/Settings/WiiPane.cpp23
1 files changed, 14 insertions, 9 deletions
diff --git a/Source/Core/DolphinQt/Settings/WiiPane.cpp b/Source/Core/DolphinQt/Settings/WiiPane.cpp
index 16f8ae3457..f6eea20dff 100644
--- a/Source/Core/DolphinQt/Settings/WiiPane.cpp
+++ b/Source/Core/DolphinQt/Settings/WiiPane.cpp
@@ -159,18 +159,23 @@ void WiiPane::CreateMisc()
void WiiPane::CreateWhitelistedUSBPassthroughDevices()
{
- auto* whitelisted_usb_passthrough_devices_group =
- new QGroupBox(tr("Whitelisted USB Passthrough Devices"));
- auto* whitelist_layout = new QGridLayout();
m_whitelist_usb_list = new QListWidget();
- whitelist_layout->addWidget(m_whitelist_usb_list, 0, 0, 1, -1);
- whitelist_layout->setColumnStretch(0, 1);
m_whitelist_usb_add_button = new NonDefaultQPushButton(tr("Add..."));
m_whitelist_usb_remove_button = new NonDefaultQPushButton(tr("Remove"));
- whitelist_layout->addWidget(m_whitelist_usb_add_button, 1, 1);
- whitelist_layout->addWidget(m_whitelist_usb_remove_button, 1, 2);
- whitelist_layout->addWidget(m_whitelist_usb_list, 0, 0);
- whitelisted_usb_passthrough_devices_group->setLayout(whitelist_layout);
+
+ QHBoxLayout* hlayout = new QHBoxLayout;
+ hlayout->addStretch();
+ hlayout->addWidget(m_whitelist_usb_add_button);
+ hlayout->addWidget(m_whitelist_usb_remove_button);
+
+ QVBoxLayout* vlayout = new QVBoxLayout;
+ vlayout->addWidget(m_whitelist_usb_list);
+ vlayout->addLayout(hlayout);
+
+ auto* whitelisted_usb_passthrough_devices_group =
+ new QGroupBox(tr("Whitelisted USB Passthrough Devices"));
+ whitelisted_usb_passthrough_devices_group->setLayout(vlayout);
+
m_main_layout->addWidget(whitelisted_usb_passthrough_devices_group);
}