MCPcopy Create free account
hub / github.com/ElementsProject/elements / copyAddress

Method copyAddress

src/qt/receivecoinsdialog.cpp:281–291  ·  view source on GitHub ↗

context menu action: copy address

Source from the content-addressed store, hash-verified

279
280// context menu action: copy address
281void ReceiveCoinsDialog::copyAddress()
282{
283 const QModelIndex sel = selectedRow();
284 if (!sel.isValid()) {
285 return;
286 }
287
288 const RecentRequestsTableModel* const submodel = model->getRecentRequestsTableModel();
289 const QString address = submodel->entry(sel.row()).recipient.address;
290 GUIUtil::setClipboard(address);
291}
292
293// context menu action: copy label
294void ReceiveCoinsDialog::copyLabel()

Callers

nothing calls this directly

Calls 3

setClipboardFunction · 0.85
isValidMethod · 0.45

Tested by

no test coverage detected