Changeset View
Changeset View
Standalone View
Standalone View
src/qt/receivecoinsdialog.cpp
Show First 20 Lines • Show All 257 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
// copy column of selected row to clipboard | // copy column of selected row to clipboard | ||||
void ReceiveCoinsDialog::copyColumnToClipboard(int column) { | void ReceiveCoinsDialog::copyColumnToClipboard(int column) { | ||||
QModelIndex firstIndex = selectedRow(); | QModelIndex firstIndex = selectedRow(); | ||||
if (!firstIndex.isValid()) { | if (!firstIndex.isValid()) { | ||||
return; | return; | ||||
} | } | ||||
GUIUtil::setClipboard( | GUIUtil::setClipboard(model->getRecentRequestsTableModel() | ||||
model->getRecentRequestsTableModel() | ->index(firstIndex.row(), column) | ||||
->data(firstIndex.child(firstIndex.row(), column), Qt::EditRole) | .data(Qt::EditRole) | ||||
.toString()); | .toString()); | ||||
} | } | ||||
// context menu | // context menu | ||||
void ReceiveCoinsDialog::showMenu(const QPoint &point) { | void ReceiveCoinsDialog::showMenu(const QPoint &point) { | ||||
if (!selectedRow().isValid()) { | if (!selectedRow().isValid()) { | ||||
return; | return; | ||||
} | } | ||||
contextMenu->exec(QCursor::pos()); | contextMenu->exec(QCursor::pos()); | ||||
Show All 30 Lines |