Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
251}252GUIUtil::setClipboard(model->getRecentRequestsTableModel()->index(firstIndex.row(), column).data(Qt::EditRole).toString());253}255// context menu256void ReceiveCoinsDialog::showMenu(const QPoint &point)257{258const QModelIndex sel = selectedRow();259if (!sel.isValid()) {260return;261}263// disable context menu actions when appropriate264const RecentRequestsTableModel* const submodel = model->getRecentRequestsTableModel();265const RecentRequestEntry& req = submodel->entry(sel.row());266copyLabelAction->setDisabled(req.recipient.label.isEmpty());267copyMessageAction->setDisabled(req.recipient.message.isEmpty());268copyAmountAction->setDisabled(req.recipient.amount == 0);270contextMenu->exec(QCursor::pos());271}273// context menu action: copy URI274void ReceiveCoinsDialog::copyURI()275{276QModelIndex sel = selectedRow();277if (!sel.isValid()) {278return;279}281const RecentRequestsTableModel * const submodel = model->getRecentRequestsTableModel();282const QString uri = GUIUtil::formatBitcoinURI(submodel->entry(sel.row()).recipient);283GUIUtil::setClipboard(uri);284}286// context menu action: copy address287void ReceiveCoinsDialog::copyAddress()288{289const QModelIndex sel = selectedRow();290if (!sel.isValid()) {291return;292}294const RecentRequestsTableModel* const submodel = model->getRecentRequestsTableModel();295const QString address = submodel->entry(sel.row()).recipient.address;296GUIUtil::setClipboard(address);297}299// context menu action: copy label300void ReceiveCoinsDialog::copyLabel()301{302copyColumnToClipboard(RecentRequestsTableModel::Label);303}305// context menu action: copy message306void ReceiveCoinsDialog::copyMessage()307{308copyColumnToClipboard(RecentRequestsTableModel::Message);309}311// context menu action: copy amount312void ReceiveCoinsDialog::copyAmount()313{314copyColumnToClipboard(RecentRequestsTableModel::Amount);315}
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.