MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / copyURI

Method copyURI

src/qt/receivecoinsdialog.cpp:267–277  ·  view source on GitHub ↗

context menu action: copy URI

Source from the content-addressed store, hash-verified

265
266// context menu action: copy URI
267void ReceiveCoinsDialog::copyURI()
268{
269 QModelIndex sel = selectedRow();
270 if (!sel.isValid()) {
271 return;
272 }
273
274 const RecentRequestsTableModel * const submodel = model->getRecentRequestsTableModel();
275 const QString uri = GUIUtil::formatBitcoinURI(submodel->entry(sel.row()).recipient);
276 GUIUtil::setClipboard(uri);
277}
278
279// context menu action: copy label
280void ReceiveCoinsDialog::copyLabel()

Callers

nothing calls this directly

Calls 4

formatBitcoinURIFunction · 0.85
setClipboardFunction · 0.85
isValidMethod · 0.45

Tested by

no test coverage detected