summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-07-10 20:20:27 +0200
committerGitHub <noreply@github.com>2018-07-10 20:20:27 +0200
commit71ff634c95bdaf03d5f73f4c9de21f17a7e221af (patch)
treeefe69b805f4e0033b7e09e12545b20dddd56e21b /Source/Core/DolphinQt/Debugger/WatchWidget.cpp
parentb9960777a72c66f3b217669b554254ce6ddb3664 (diff)
parent074b67706b6e5e436f07dc77af460f3e7cd7bc72 (diff)
Merge pull request #7149 from spycrab/qt_5.9
Qt: Make Qt 5.9 a hard requirement
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/WatchWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/WatchWidget.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
index aa64035e2c..924cc737ca 100644
--- a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
@@ -11,7 +11,6 @@
#include "Core/PowerPC/MMU.h"
#include "Core/PowerPC/PowerPC.h"
-#include "DolphinQt/QtUtils/ActionHelper.h"
#include "DolphinQt/Resources.h"
#include "DolphinQt/Settings.h"
@@ -84,8 +83,8 @@ void WatchWidget::CreateWidgets()
m_table->setContextMenuPolicy(Qt::CustomContextMenu);
m_table->setSelectionMode(QAbstractItemView::SingleSelection);
- m_load = AddAction(m_toolbar, tr("Load"), this, &WatchWidget::OnLoad);
- m_save = AddAction(m_toolbar, tr("Save"), this, &WatchWidget::OnSave);
+ m_load = m_toolbar->addAction(tr("Load"), this, &WatchWidget::OnLoad);
+ m_save = m_toolbar->addAction(tr("Save"), this, &WatchWidget::OnSave);
m_load->setEnabled(false);
m_save->setEnabled(false);
@@ -238,16 +237,16 @@ void WatchWidget::ShowContextMenu()
{
// i18n: This kind of "watch" is used for watching emulated memory.
// It's not related to timekeeping devices.
- AddAction(menu, tr("&Delete Watch"), this, [this, row] { DeleteWatch(row); });
- AddAction(menu, tr("&Add Memory Breakpoint"), this,
- [this, row] { AddWatchBreakpoint(row); });
+ menu->addAction(tr("&Delete Watch"), this, [this, row] { DeleteWatch(row); });
+ menu->addAction(tr("&Add Memory Breakpoint"), this,
+ [this, row] { AddWatchBreakpoint(row); });
}
}
}
menu->addSeparator();
- AddAction(menu, tr("Update"), this, &WatchWidget::Update);
+ menu->addAction(tr("Update"), this, &WatchWidget::Update);
menu->exec(QCursor::pos());
}