mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Debugger: Add a Thread widget
DebugInterface: Add GetThreads WatchWidget: Update widget on AddWatch
This commit is contained in:
parent
9ffa72ad1f
commit
39d34e133f
24 changed files with 1090 additions and 12 deletions
|
@ -168,6 +168,7 @@ void MenuBar::OnDebugModeToggled(bool enabled)
|
|||
// View
|
||||
m_show_code->setVisible(enabled);
|
||||
m_show_registers->setVisible(enabled);
|
||||
m_show_threads->setVisible(enabled);
|
||||
m_show_watch->setVisible(enabled);
|
||||
m_show_breakpoints->setVisible(enabled);
|
||||
m_show_memory->setVisible(enabled);
|
||||
|
@ -445,6 +446,14 @@ void MenuBar::AddViewMenu()
|
|||
connect(&Settings::Instance(), &Settings::RegistersVisibilityChanged, m_show_registers,
|
||||
&QAction::setChecked);
|
||||
|
||||
m_show_threads = view_menu->addAction(tr("&Threads"));
|
||||
m_show_threads->setCheckable(true);
|
||||
m_show_threads->setChecked(Settings::Instance().IsThreadsVisible());
|
||||
|
||||
connect(m_show_threads, &QAction::toggled, &Settings::Instance(), &Settings::SetThreadsVisible);
|
||||
connect(&Settings::Instance(), &Settings::ThreadsVisibilityChanged, m_show_threads,
|
||||
&QAction::setChecked);
|
||||
|
||||
// i18n: This kind of "watch" is used for watching emulated memory.
|
||||
// It's not related to timekeeping devices.
|
||||
m_show_watch = view_menu->addAction(tr("&Watch"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue