1
0
Fork 0

Created additional shortcut to the copyAddress() function

Created additional shortcut to the copyAddress() function. I currently have this set as Alt+INS but if people want to change they can easily do so from  the shortcut config menu.


    mCopyAddress = new QAction("&Address", this);
    mCopyAddress->setShortcutContext(Qt::WidgetShortcut);
    this->addAction(mCopyAddress);
    connect(mCopyAddress, SIGNAL(triggered()), this, SLOT(copyAddress()));
This commit is contained in:
ApertureSecurity 2015-04-20 14:58:49 -06:00
parent 9828a8ef6e
commit b4dc90039b
1 changed files with 3 additions and 1 deletions

View File

@ -487,8 +487,10 @@ void CPUDisassembly::setupRightClickContextMenu()
connect(mCopySelectionNoBytes, SIGNAL(triggered()), this, SLOT(copySelectionNoBytes()));
mCopyAddress = new QAction("&Address", this);
mCopyAddress->setShortcutContext(Qt::WidgetShortcut);
this->addAction(mCopyAddress);
connect(mCopyAddress, SIGNAL(triggered()), this, SLOT(copyAddress()));
mCopyDisassembly = new QAction("Disassembly", this);
connect(mCopyDisassembly, SIGNAL(triggered()), this, SLOT(copyDisassembly()));