context menu action: copy address
| 279 | |
| 280 | // context menu action: copy address |
| 281 | void 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 |
| 294 | void ReceiveCoinsDialog::copyLabel() |
nothing calls this directly
no test coverage detected