MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / selectedRow

Method selectedRow

src/qt/receivecoinsdialog.cpp:235–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

QModelIndexClass · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected