diff options
Diffstat (limited to 'src/citra_qt/debugger/graphics_breakpoint_observer.cpp')
| -rw-r--r-- | src/citra_qt/debugger/graphics_breakpoint_observer.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/citra_qt/debugger/graphics_breakpoint_observer.cpp b/src/citra_qt/debugger/graphics_breakpoint_observer.cpp index f134eef63..25a398ece 100644 --- a/src/citra_qt/debugger/graphics_breakpoint_observer.cpp +++ b/src/citra_qt/debugger/graphics_breakpoint_observer.cpp | |||
| @@ -8,25 +8,21 @@ | |||
| 8 | 8 | ||
| 9 | BreakPointObserverDock::BreakPointObserverDock(std::shared_ptr<Pica::DebugContext> debug_context, | 9 | BreakPointObserverDock::BreakPointObserverDock(std::shared_ptr<Pica::DebugContext> debug_context, |
| 10 | const QString& title, QWidget* parent) | 10 | const QString& title, QWidget* parent) |
| 11 | : QDockWidget(title, parent), BreakPointObserver(debug_context) | 11 | : QDockWidget(title, parent), BreakPointObserver(debug_context) { |
| 12 | { | ||
| 13 | qRegisterMetaType<Pica::DebugContext::Event>("Pica::DebugContext::Event"); | 12 | qRegisterMetaType<Pica::DebugContext::Event>("Pica::DebugContext::Event"); |
| 14 | 13 | ||
| 15 | connect(this, SIGNAL(Resumed()), this, SLOT(OnResumed())); | 14 | connect(this, SIGNAL(Resumed()), this, SLOT(OnResumed())); |
| 16 | 15 | ||
| 17 | // NOTE: This signal is emitted from a non-GUI thread, but connect() takes | 16 | // NOTE: This signal is emitted from a non-GUI thread, but connect() takes |
| 18 | // care of delaying its handling to the GUI thread. | 17 | // care of delaying its handling to the GUI thread. |
| 19 | connect(this, SIGNAL(BreakPointHit(Pica::DebugContext::Event,void*)), | 18 | connect(this, SIGNAL(BreakPointHit(Pica::DebugContext::Event, void*)), this, |
| 20 | this, SLOT(OnBreakPointHit(Pica::DebugContext::Event,void*)), | 19 | SLOT(OnBreakPointHit(Pica::DebugContext::Event, void*)), Qt::BlockingQueuedConnection); |
| 21 | Qt::BlockingQueuedConnection); | ||
| 22 | } | 20 | } |
| 23 | 21 | ||
| 24 | void BreakPointObserverDock::OnPicaBreakPointHit(Pica::DebugContext::Event event, void* data) | 22 | void BreakPointObserverDock::OnPicaBreakPointHit(Pica::DebugContext::Event event, void* data) { |
| 25 | { | ||
| 26 | emit BreakPointHit(event, data); | 23 | emit BreakPointHit(event, data); |
| 27 | } | 24 | } |
| 28 | 25 | ||
| 29 | void BreakPointObserverDock::OnPicaResume() | 26 | void BreakPointObserverDock::OnPicaResume() { |
| 30 | { | ||
| 31 | emit Resumed(); | 27 | emit Resumed(); |
| 32 | } | 28 | } |