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

Method on_removeRequestButton_clicked

src/qt/receivecoinsdialog.cpp:199–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199void ReceiveCoinsDialog::on_removeRequestButton_clicked()
200{
201 if(!model || !model->getRecentRequestsTableModel() || !ui->recentRequestsView->selectionModel())
202 return;
203 QModelIndexList selection = ui->recentRequestsView->selectionModel()->selectedRows();
204 if(selection.empty())
205 return;
206 // correct for selection mode ContiguousSelection
207 QModelIndex firstIndex = selection.at(0);
208 model->getRecentRequestsTableModel()->removeRows(firstIndex.row(), selection.length(), firstIndex.parent());
209}
210
211// We override the virtual resizeEvent of the QWidget to adjust tables column
212// sizes as the tables width is proportional to the dialogs width.

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
removeRowsMethod · 0.45

Tested by

no test coverage detected