|
|
|
@ -161,32 +161,21 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
|
|
|
|
|
transactionView->horizontalHeader()->setStretchLastSection(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Actions
|
|
|
|
|
abandonAction = new QAction(tr("Abandon transaction"), this);
|
|
|
|
|
bumpFeeAction = new QAction(tr("Increase transaction fee"), this);
|
|
|
|
|
bumpFeeAction->setObjectName("bumpFeeAction");
|
|
|
|
|
copyAddressAction = new QAction(tr("Copy address"), this);
|
|
|
|
|
copyLabelAction = new QAction(tr("Copy label"), this);
|
|
|
|
|
QAction *copyAmountAction = new QAction(tr("Copy amount"), this);
|
|
|
|
|
QAction *copyTxIDAction = new QAction(tr("Copy transaction ID"), this);
|
|
|
|
|
QAction *copyTxHexAction = new QAction(tr("Copy raw transaction"), this);
|
|
|
|
|
QAction *copyTxPlainText = new QAction(tr("Copy full transaction details"), this);
|
|
|
|
|
QAction *editLabelAction = new QAction(tr("Edit address label"), this);
|
|
|
|
|
QAction *showDetailsAction = new QAction(tr("Show transaction details"), this);
|
|
|
|
|
|
|
|
|
|
contextMenu = new QMenu(this);
|
|
|
|
|
contextMenu->setObjectName("contextMenu");
|
|
|
|
|
contextMenu->addAction(copyAddressAction);
|
|
|
|
|
contextMenu->addAction(copyLabelAction);
|
|
|
|
|
contextMenu->addAction(copyAmountAction);
|
|
|
|
|
contextMenu->addAction(copyTxIDAction);
|
|
|
|
|
contextMenu->addAction(copyTxHexAction);
|
|
|
|
|
contextMenu->addAction(copyTxPlainText);
|
|
|
|
|
contextMenu->addAction(showDetailsAction);
|
|
|
|
|
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();
|
|
|
|
|
contextMenu->addAction(bumpFeeAction);
|
|
|
|
|
contextMenu->addAction(abandonAction);
|
|
|
|
|
contextMenu->addAction(editLabelAction);
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
connect(dateWidget, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated), this, &TransactionView::chooseDate);
|
|
|
|
|
connect(typeWidget, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated), this, &TransactionView::chooseType);
|
|
|
|
@ -199,16 +188,6 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
|
|
|
|
|
connect(transactionView, &QTableView::doubleClicked, this, &TransactionView::doubleClicked);
|
|
|
|
|
connect(transactionView, &QTableView::customContextMenuRequested, this, &TransactionView::contextualMenu);
|
|
|
|
|
|
|
|
|
|
GUIUtil::ExceptionSafeConnect(bumpFeeAction, &QAction::triggered, this, &TransactionView::bumpFee);
|
|
|
|
|
connect(abandonAction, &QAction::triggered, this, &TransactionView::abandonTx);
|
|
|
|
|
connect(copyAddressAction, &QAction::triggered, this, &TransactionView::copyAddress);
|
|
|
|
|
connect(copyLabelAction, &QAction::triggered, this, &TransactionView::copyLabel);
|
|
|
|
|
connect(copyAmountAction, &QAction::triggered, this, &TransactionView::copyAmount);
|
|
|
|
|
connect(copyTxIDAction, &QAction::triggered, this, &TransactionView::copyTxID);
|
|
|
|
|
connect(copyTxHexAction, &QAction::triggered, this, &TransactionView::copyTxHex);
|
|
|
|
|
connect(copyTxPlainText, &QAction::triggered, this, &TransactionView::copyTxPlainText);
|
|
|
|
|
connect(editLabelAction, &QAction::triggered, this, &TransactionView::editLabel);
|
|
|
|
|
connect(showDetailsAction, &QAction::triggered, this, &TransactionView::showDetails);
|
|
|
|
|
// Double-clicking on a transaction on the transaction history page shows details
|
|
|
|
|
connect(this, &TransactionView::doubleClicked, this, &TransactionView::showDetails);
|
|
|
|
|
// Highlight transaction after fee bump
|
|
|
|
|