diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2019-03-16 17:55:47 +0100 |
|---|---|---|
| committer | spycrab <spycrab@users.noreply.github.com> | 2019-03-20 23:46:45 +0100 |
| commit | e8b3c6cb3ec7fdbe9e2f8db128e6c1efbc43817e (patch) | |
| tree | f43c34714753fd3537ca81a5f8bc9410e03a238c /Source/Core/DolphinQt/Config/Mapping/HotkeyDebugging.cpp | |
| parent | e31ae0b3a0c26402f6a5be73a1546fa4b7c2f817 (diff) | |
Qt/Mapping: Use QGridLayout in a few more places
Diffstat (limited to 'Source/Core/DolphinQt/Config/Mapping/HotkeyDebugging.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/Mapping/HotkeyDebugging.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Source/Core/DolphinQt/Config/Mapping/HotkeyDebugging.cpp b/Source/Core/DolphinQt/Config/Mapping/HotkeyDebugging.cpp index b2225f2ca3..7bad24a89e 100644 --- a/Source/Core/DolphinQt/Config/Mapping/HotkeyDebugging.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/HotkeyDebugging.cpp @@ -4,9 +4,8 @@ #include "DolphinQt/Config/Mapping/HotkeyDebugging.h" +#include <QGridLayout> #include <QGroupBox> -#include <QHBoxLayout> -#include <QVBoxLayout> #include "Core/HotkeyManager.h" @@ -17,16 +16,15 @@ HotkeyDebugging::HotkeyDebugging(MappingWindow* window) : MappingWidget(window) void HotkeyDebugging::CreateMainLayout() { - m_main_layout = new QHBoxLayout(); + m_main_layout = new QGridLayout(); m_main_layout->addWidget( - CreateGroupBox(tr("Stepping"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_STEPPING))); + CreateGroupBox(tr("Stepping"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_STEPPING)), 0, 0, -1, 1); - auto* vbox = new QVBoxLayout(); - vbox->addWidget(CreateGroupBox(tr("Program Counter"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_PC))); - vbox->addWidget( - CreateGroupBox(tr("Breakpoint"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_BREAKPOINT))); - m_main_layout->addLayout(vbox); + m_main_layout->addWidget( + CreateGroupBox(tr("Program Counter"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_PC)), 0, 1); + m_main_layout->addWidget( + CreateGroupBox(tr("Breakpoint"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_BREAKPOINT)), 1, 1); setLayout(m_main_layout); } |
