Changeset View
Changeset View
Standalone View
Standalone View
src/qt/receivecoinsdialog.cpp
Show First 20 Lines • Show All 273 Lines • ▼ Show 20 Lines | void ReceiveCoinsDialog::copyURI() { | ||||
QModelIndex sel = selectedRow(); | QModelIndex sel = selectedRow(); | ||||
if (!sel.isValid()) { | if (!sel.isValid()) { | ||||
return; | return; | ||||
} | } | ||||
const RecentRequestsTableModel *const submodel = | const RecentRequestsTableModel *const submodel = | ||||
model->getRecentRequestsTableModel(); | model->getRecentRequestsTableModel(); | ||||
const QString uri = | const QString uri = | ||||
GUIUtil::formatBitcoinURI(submodel->entry(sel.row()).recipient); | GUIUtil::formatBitcoinURI(cfg, submodel->entry(sel.row()).recipient); | ||||
GUIUtil::setClipboard(uri); | GUIUtil::setClipboard(uri); | ||||
} | } | ||||
// context menu action: copy label | // context menu action: copy label | ||||
void ReceiveCoinsDialog::copyLabel() { | void ReceiveCoinsDialog::copyLabel() { | ||||
copyColumnToClipboard(RecentRequestsTableModel::Label); | copyColumnToClipboard(RecentRequestsTableModel::Label); | ||||
} | } | ||||
Show All 9 Lines |