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

Method on_removeRequestButton_clicked

src/qt/receivecoinsdialog.cpp:228–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void ReceiveCoinsDialog::on_removeRequestButton_clicked()
229{
230 if(!model || !model->getRecentRequestsTableModel() || !ui->recentRequestsView->selectionModel())
231 return;
232 QModelIndexList selection = ui->recentRequestsView->selectionModel()->selectedRows();
233 if(selection.empty())
234 return;
235 // correct for selection mode ContiguousSelection
236 QModelIndex firstIndex = selection.at(0);
237 model->getRecentRequestsTableModel()->removeRows(firstIndex.row(), selection.length(), firstIndex.parent());
238}
239
240QModelIndex ReceiveCoinsDialog::selectedRow()
241{

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
removeRowsMethod · 0.45

Tested by

no test coverage detected