diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2017-09-27 08:53:05 +0200 |
|---|---|---|
| committer | spycrab <spycrab@users.noreply.github.com> | 2017-12-28 19:07:56 +0100 |
| commit | 08716be43bbefe29ec6fe2a08a88439278746006 (patch) | |
| tree | 24931a1423d9ee0fd4cc95db60b4732939969828 /Source/Core/DolphinQt2/MenuBar.cpp | |
| parent | ec37ce093f5349a785d056958a187f5391322b4c (diff) | |
Qt/Debugger: Implement "Watch" window
Diffstat (limited to 'Source/Core/DolphinQt2/MenuBar.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/MenuBar.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/MenuBar.cpp b/Source/Core/DolphinQt2/MenuBar.cpp index d0143eb9f9..0ef13e32e6 100644 --- a/Source/Core/DolphinQt2/MenuBar.cpp +++ b/Source/Core/DolphinQt2/MenuBar.cpp @@ -91,6 +91,7 @@ void MenuBar::OnEmulationStateChanged(Core::State state) void MenuBar::OnDebugModeToggled(bool enabled) { m_show_registers->setVisible(enabled); + m_show_watch->setVisible(enabled); } void MenuBar::AddFileMenu() @@ -272,6 +273,14 @@ void MenuBar::AddViewMenu() connect(&Settings::Instance(), &Settings::RegistersVisibilityChanged, m_show_registers, &QAction::setChecked); + m_show_watch = view_menu->addAction(tr("&Watch")); + m_show_watch->setCheckable(true); + m_show_watch->setChecked(Settings::Instance().IsWatchVisible()); + + connect(m_show_watch, &QAction::toggled, &Settings::Instance(), &Settings::SetWatchVisible); + connect(&Settings::Instance(), &Settings::WatchVisibilityChanged, m_show_watch, + &QAction::setChecked); + view_menu->addSeparator(); AddGameListTypeSection(view_menu); |
