diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2018-07-09 10:02:10 +0200 |
|---|---|---|
| committer | spycrab <spycrab@users.noreply.github.com> | 2018-07-09 10:02:10 +0200 |
| commit | a22ffb6387d9500283baf0079c55e8a6623b3f5f (patch) | |
| tree | 88056e8cea306852159334786d087af2be74e8fb /Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp | |
| parent | 4266d1f237850977c7c1d95112c57fdbd4312d0f (diff) | |
Qt: Remove ActionHelper
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp index d97c8cc26f..30f262dbcf 100644 --- a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp @@ -19,7 +19,6 @@ #include "Core/PowerPC/MMU.h" #include "Core/PowerPC/PowerPC.h" -#include "DolphinQt/QtUtils/ActionHelper.h" #include "DolphinQt/Resources.h" #include "DolphinQt/Settings.h" @@ -351,16 +350,16 @@ void MemoryViewWidget::OnContextMenu() { auto* menu = new QMenu(this); - AddAction(menu, tr("Copy Address"), this, &MemoryViewWidget::OnCopyAddress); + menu->addAction(tr("Copy Address"), this, &MemoryViewWidget::OnCopyAddress); - auto* copy_hex = AddAction(menu, tr("Copy Hex"), this, &MemoryViewWidget::OnCopyHex); + auto* copy_hex = menu->addAction(tr("Copy Hex"), this, &MemoryViewWidget::OnCopyHex); copy_hex->setEnabled(Core::GetState() != Core::State::Uninitialized && PowerPC::HostIsRAMAddress(GetContextAddress())); menu->addSeparator(); - AddAction(menu, tr("Toggle Breakpoint"), this, &MemoryViewWidget::ToggleBreakpoint); + menu->addAction(tr("Toggle Breakpoint"), this, &MemoryViewWidget::ToggleBreakpoint); menu->exec(QCursor::pos()); } |
