mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
GUI: Add keyboard shortcuts for other context menus
This commit is contained in:
parent
02b5263cd4
commit
94e7cdd7e0
4 changed files with 22 additions and 22 deletions
|
@ -119,7 +119,7 @@ AddressBookPage::AddressBookPage(const PlatformStyle *platformStyle, Mode _mode,
|
|||
contextMenu->addAction(tr("&Edit"), this, &AddressBookPage::onEditAction);
|
||||
|
||||
if (tab == SendingTab) {
|
||||
contextMenu->addAction(tr("Delete"), this, &AddressBookPage::on_deleteAddress_clicked);
|
||||
contextMenu->addAction(tr("&Delete"), this, &AddressBookPage::on_deleteAddress_clicked);
|
||||
}
|
||||
|
||||
connect(ui->tableView, &QWidget::customContextMenuRequested, this, &AddressBookPage::contextualMenu);
|
||||
|
|
|
@ -52,13 +52,13 @@ CoinControlDialog::CoinControlDialog(CCoinControl& coin_control, WalletModel* _m
|
|||
|
||||
// context menu
|
||||
contextMenu = new QMenu(this);
|
||||
contextMenu->addAction(tr("Copy address"), this, &CoinControlDialog::copyAddress);
|
||||
contextMenu->addAction(tr("Copy label"), this, &CoinControlDialog::copyLabel);
|
||||
contextMenu->addAction(tr("Copy amount"), this, &CoinControlDialog::copyAmount);
|
||||
copyTransactionHashAction = contextMenu->addAction(tr("Copy transaction ID"), this, &CoinControlDialog::copyTransactionHash);
|
||||
contextMenu->addAction(tr("&Copy address"), this, &CoinControlDialog::copyAddress);
|
||||
contextMenu->addAction(tr("Copy &label"), this, &CoinControlDialog::copyLabel);
|
||||
contextMenu->addAction(tr("Copy &amount"), this, &CoinControlDialog::copyAmount);
|
||||
copyTransactionHashAction = contextMenu->addAction(tr("Copy transaction &ID"), this, &CoinControlDialog::copyTransactionHash);
|
||||
contextMenu->addSeparator();
|
||||
lockAction = contextMenu->addAction(tr("Lock unspent"), this, &CoinControlDialog::lockCoin);
|
||||
unlockAction = contextMenu->addAction(tr("Unlock unspent"), this, &CoinControlDialog::unlockCoin);
|
||||
lockAction = contextMenu->addAction(tr("L&ock unspent"), this, &CoinControlDialog::lockCoin);
|
||||
unlockAction = contextMenu->addAction(tr("&Unlock unspent"), this, &CoinControlDialog::unlockCoin);
|
||||
connect(ui->treeWidget, &QWidget::customContextMenuRequested, this, &CoinControlDialog::showMenu);
|
||||
|
||||
// clipboard actions
|
||||
|
|
|
@ -44,11 +44,11 @@ ReceiveCoinsDialog::ReceiveCoinsDialog(const PlatformStyle *_platformStyle, QWid
|
|||
|
||||
// context menu
|
||||
contextMenu = new QMenu(this);
|
||||
contextMenu->addAction(tr("Copy URI"), this, &ReceiveCoinsDialog::copyURI);
|
||||
contextMenu->addAction(tr("Copy address"), this, &ReceiveCoinsDialog::copyAddress);
|
||||
copyLabelAction = contextMenu->addAction(tr("Copy label"), this, &ReceiveCoinsDialog::copyLabel);
|
||||
copyMessageAction = contextMenu->addAction(tr("Copy message"), this, &ReceiveCoinsDialog::copyMessage);
|
||||
copyAmountAction = contextMenu->addAction(tr("Copy amount"), this, &ReceiveCoinsDialog::copyAmount);
|
||||
contextMenu->addAction(tr("Copy &URI"), this, &ReceiveCoinsDialog::copyURI);
|
||||
contextMenu->addAction(tr("&Copy address"), this, &ReceiveCoinsDialog::copyAddress);
|
||||
copyLabelAction = contextMenu->addAction(tr("Copy &label"), this, &ReceiveCoinsDialog::copyLabel);
|
||||
copyMessageAction = contextMenu->addAction(tr("Copy &message"), this, &ReceiveCoinsDialog::copyMessage);
|
||||
copyAmountAction = contextMenu->addAction(tr("Copy &amount"), this, &ReceiveCoinsDialog::copyAmount);
|
||||
connect(ui->recentRequestsView, &QWidget::customContextMenuRequested, this, &ReceiveCoinsDialog::showMenu);
|
||||
|
||||
connect(ui->clearButton, &QPushButton::clicked, this, &ReceiveCoinsDialog::clear);
|
||||
|
|
|
@ -163,19 +163,19 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
|
|||
|
||||
contextMenu = new QMenu(this);
|
||||
contextMenu->setObjectName("contextMenu");
|
||||
copyAddressAction = contextMenu->addAction(tr("Copy address"), this, &TransactionView::copyAddress);
|
||||
copyLabelAction = contextMenu->addAction(tr("Copy label"), this, &TransactionView::copyLabel);
|
||||
contextMenu->addAction(tr("Copy amount"), this, &TransactionView::copyAmount);
|
||||
contextMenu->addAction(tr("Copy transaction ID"), this, &TransactionView::copyTxID);
|
||||
contextMenu->addAction(tr("Copy raw transaction"), this, &TransactionView::copyTxHex);
|
||||
contextMenu->addAction(tr("Copy full transaction details"), this, &TransactionView::copyTxPlainText);
|
||||
contextMenu->addAction(tr("Show transaction details"), this, &TransactionView::showDetails);
|
||||
copyAddressAction = contextMenu->addAction(tr("&Copy address"), this, &TransactionView::copyAddress);
|
||||
copyLabelAction = contextMenu->addAction(tr("Copy &label"), this, &TransactionView::copyLabel);
|
||||
contextMenu->addAction(tr("Copy &amount"), this, &TransactionView::copyAmount);
|
||||
contextMenu->addAction(tr("Copy transaction &ID"), this, &TransactionView::copyTxID);
|
||||
contextMenu->addAction(tr("Copy &raw transaction"), this, &TransactionView::copyTxHex);
|
||||
contextMenu->addAction(tr("Copy full transaction &details"), this, &TransactionView::copyTxPlainText);
|
||||
contextMenu->addAction(tr("&Show transaction details"), this, &TransactionView::showDetails);
|
||||
contextMenu->addSeparator();
|
||||
bumpFeeAction = contextMenu->addAction(tr("Increase transaction fee"));
|
||||
bumpFeeAction = contextMenu->addAction(tr("Increase transaction &fee"));
|
||||
GUIUtil::ExceptionSafeConnect(bumpFeeAction, &QAction::triggered, this, &TransactionView::bumpFee);
|
||||
bumpFeeAction->setObjectName("bumpFeeAction");
|
||||
abandonAction = contextMenu->addAction(tr("Abandon transaction"), this, &TransactionView::abandonTx);
|
||||
contextMenu->addAction(tr("Edit address label"), this, &TransactionView::editLabel);
|
||||
abandonAction = contextMenu->addAction(tr("A&bandon transaction"), this, &TransactionView::abandonTx);
|
||||
contextMenu->addAction(tr("&Edit address label"), this, &TransactionView::editLabel);
|
||||
|
||||
connect(dateWidget, qOverload<int>(&QComboBox::activated), this, &TransactionView::chooseDate);
|
||||
connect(typeWidget, qOverload<int>(&QComboBox::activated), this, &TransactionView::chooseType);
|
||||
|
|
Loading…
Reference in a new issue