Added go to address function to debugger tool bar.

This commit is contained in:
mjbudd77 2021-07-02 16:26:44 -04:00
parent fd6876a09d
commit 7af00f523e
2 changed files with 17 additions and 0 deletions

View File

@ -21,5 +21,8 @@
<file>icons/RunPpuFrame.png</file>
<file>icons/RunPpuScanline.png</file>
<file>icons/arrow-cursor.png</file>
<file>icons/JumpTarget.png</file>
<file>icons/Undo.png</file>
<file>icons/find.png</file>
</qresource>
</RCC>

View File

@ -131,6 +131,8 @@ ConsoleDebugger::ConsoleDebugger(QWidget *parent)
act = new QAction(tr("&Go to Address"), this);
act->setShortcut( QKeySequence(tr("Ctrl+A") ));
act->setStatusTip(tr("&Go to Address"));
//act->setIcon( QIcon(":icons/find.png") );
act->setIcon( QIcon(":icons/JumpTarget.png") );
connect(act, SIGNAL(triggered()), this, SLOT(openGotoAddrDialog(void)) );
fileMenu->addAction(act);
@ -395,6 +397,18 @@ ConsoleDebugger::ConsoleDebugger(QWidget *parent)
// Tool Bar Setup Start
//-----------------------------------------------------------------------
// File -> Go to Address
act = new QAction(tr("&Go to Address"), this);
//act->setShortcut( QKeySequence(tr("Ctrl+A") ));
act->setStatusTip(tr("&Go to Address"));
//act->setIcon( QIcon(":icons/find.png") );
act->setIcon( QIcon(":icons/JumpTarget.png") );
connect(act, SIGNAL(triggered()), this, SLOT(openGotoAddrDialog(void)) );
toolBar->addAction(act);
toolBar->addSeparator();
// Debug -> Run
act = new QAction(tr("&Run"), this);
//act->setShortcut(QKeySequence( tr("F5") ) );