MCPcopy Create free account
hub / github.com/ElementsProject/elements / selectedRow

Method selectedRow

src/qt/receivecoinsdialog.cpp:240–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240QModelIndex ReceiveCoinsDialog::selectedRow()
241{
242 if(!model || !model->getRecentRequestsTableModel() || !ui->recentRequestsView->selectionModel())
243 return QModelIndex();
244 QModelIndexList selection = ui->recentRequestsView->selectionModel()->selectedRows();
245 if(selection.empty())
246 return QModelIndex();
247 // correct for selection mode ContiguousSelection
248 QModelIndex firstIndex = selection.at(0);
249 return firstIndex;
250}
251
252// copy column of selected row to clipboard
253void ReceiveCoinsDialog::copyColumnToClipboard(int column)

Callers

nothing calls this directly

Calls 3

QModelIndexClass · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected