context menu action: copy URI
| 265 | |
| 266 | // context menu action: copy URI |
| 267 | void 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 |
| 280 | void ReceiveCoinsDialog::copyLabel() |
nothing calls this directly
no test coverage detected