mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 22:38:34 +00:00
Qt/Debugger: Add Show in Code / Show in Memory
This commit is contained in:
parent
0a8e04e469
commit
3e3f9565ec
9 changed files with 40 additions and 0 deletions
|
@ -224,6 +224,9 @@ void CodeViewWidget::OnContextMenu()
|
|||
auto* copy_line_action =
|
||||
menu->addAction(tr("Copy code &line"), this, &CodeViewWidget::OnCopyCode);
|
||||
auto* copy_hex_action = menu->addAction(tr("Copy &hex"), this, &CodeViewWidget::OnCopyHex);
|
||||
|
||||
menu->addAction(tr("Show in &memory"), this, &CodeViewWidget::OnShowInMemory);
|
||||
|
||||
menu->addSeparator();
|
||||
|
||||
auto* symbol_rename_action =
|
||||
|
@ -267,6 +270,11 @@ void CodeViewWidget::OnCopyAddress()
|
|||
QApplication::clipboard()->setText(QStringLiteral("%1").arg(addr, 8, 16, QLatin1Char('0')));
|
||||
}
|
||||
|
||||
void CodeViewWidget::OnShowInMemory()
|
||||
{
|
||||
emit ShowMemory(GetContextAddress());
|
||||
}
|
||||
|
||||
void CodeViewWidget::OnCopyCode()
|
||||
{
|
||||
const u32 addr = GetContextAddress();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue