summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/MenuBar.cpp
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2017-10-03 18:43:44 +0200
committerspycrab <spycrab@users.noreply.github.com>2017-12-28 19:08:38 +0100
commit8795b342d101a370d314a8b600d38ff1512ec1d4 (patch)
treee9124def5c2c5b4fc47540f262089acd28c1ad55 /Source/Core/DolphinQt2/MenuBar.cpp
parent08716be43bbefe29ec6fe2a08a88439278746006 (diff)
Qt/Debugger: Implement "Breakpoints" window
Diffstat (limited to 'Source/Core/DolphinQt2/MenuBar.cpp')
-rw-r--r--Source/Core/DolphinQt2/MenuBar.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/MenuBar.cpp b/Source/Core/DolphinQt2/MenuBar.cpp
index 0ef13e32e6..326d35a1b4 100644
--- a/Source/Core/DolphinQt2/MenuBar.cpp
+++ b/Source/Core/DolphinQt2/MenuBar.cpp
@@ -92,6 +92,7 @@ void MenuBar::OnDebugModeToggled(bool enabled)
{
m_show_registers->setVisible(enabled);
m_show_watch->setVisible(enabled);
+ m_show_breakpoints->setVisible(enabled);
}
void MenuBar::AddFileMenu()
@@ -281,6 +282,15 @@ void MenuBar::AddViewMenu()
connect(&Settings::Instance(), &Settings::WatchVisibilityChanged, m_show_watch,
&QAction::setChecked);
+ m_show_breakpoints = view_menu->addAction(tr("&Breakpoints"));
+ m_show_breakpoints->setCheckable(true);
+ m_show_breakpoints->setChecked(Settings::Instance().IsBreakpointsVisible());
+
+ connect(m_show_breakpoints, &QAction::toggled, &Settings::Instance(),
+ &Settings::SetBreakpointsVisible);
+ connect(&Settings::Instance(), &Settings::BreakpointsVisibilityChanged, m_show_breakpoints,
+ &QAction::setChecked);
+
view_menu->addSeparator();
AddGameListTypeSection(view_menu);