mirror of https://github.com/PCSX2/pcsx2.git
Debugger: Implement "Copy Address" context menu in memory view
This commit is contained in:
parent
1697c2160c
commit
70e1d2bf3d
|
@ -377,7 +377,11 @@ void MemoryViewWidget::customMenuRequested(QPoint pos)
|
||||||
{
|
{
|
||||||
m_contextMenu = new QMenu(this);
|
m_contextMenu = new QMenu(this);
|
||||||
|
|
||||||
QAction* action = new QAction(tr("Go to in disassembly"));
|
QAction* action = new QAction(tr("Copy Address"));
|
||||||
|
m_contextMenu->addAction(action);
|
||||||
|
connect(action, &QAction::triggered, this, [this]() { QApplication::clipboard()->setText(QString::number(m_table.selectedAddress, 16).toUpper()); });
|
||||||
|
|
||||||
|
action = new QAction(tr("Go to in disassembly"));
|
||||||
m_contextMenu->addAction(action);
|
m_contextMenu->addAction(action);
|
||||||
connect(action, &QAction::triggered, this, [this]() { emit gotoInDisasm(m_table.selectedAddress); });
|
connect(action, &QAction::triggered, this, [this]() { emit gotoInDisasm(m_table.selectedAddress); });
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue