diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-03-17 06:03:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-17 06:03:05 +0100 |
| commit | 1ee923fd3df269acf19045dcb3232fa77acf10ff (patch) | |
| tree | 50face283fd24a09a9c9417337dc3b283315e789 /Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp | |
| parent | 8c181dbd3159f396ceb81cc35645d592454bf8aa (diff) | |
| parent | c24fa93965a68b8adf5d0df9005212792d029146 (diff) | |
Merge pull request #12630 from mitaclaw/ppc-symbols-global
PPCSymbolDB: Move instance to PowerPCManager
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp b/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp index 39d755efc9..d9ff18db03 100644 --- a/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp +++ b/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp @@ -194,25 +194,26 @@ void BranchWatchProxyModel::SetInspected(const QModelIndex& index) } BranchWatchDialog::BranchWatchDialog(Core::System& system, Core::BranchWatch& branch_watch, - CodeWidget* code_widget, QWidget* parent) + PPCSymbolDB& ppc_symbol_db, CodeWidget* code_widget, + QWidget* parent) : QDialog(parent), m_system(system), m_branch_watch(branch_watch), m_code_widget(code_widget) { setWindowTitle(tr("Branch Watch Tool")); setWindowFlags((windowFlags() | Qt::WindowMinMaxButtonsHint) & ~Qt::WindowContextHelpButtonHint); SetQWidgetWindowDecorations(this); - setLayout([this]() { + setLayout([this, &ppc_symbol_db]() { auto* main_layout = new QVBoxLayout; // Controls Toolbar (widgets are added later) main_layout->addWidget(m_control_toolbar = new QToolBar); // Branch Watch Table - main_layout->addWidget(m_table_view = [this]() { + main_layout->addWidget(m_table_view = [this, &ppc_symbol_db]() { const auto& ui_settings = Settings::Instance(); m_table_proxy = new BranchWatchProxyModel(m_branch_watch); - m_table_proxy->setSourceModel(m_table_model = - new BranchWatchTableModel(m_system, m_branch_watch)); + m_table_proxy->setSourceModel( + m_table_model = new BranchWatchTableModel(m_system, m_branch_watch, ppc_symbol_db)); m_table_proxy->setSortRole(UserRole::SortRole); m_table_model->setFont(ui_settings.GetDebugFont()); |
