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