MCPcopy Create free account
hub / github.com/Neverous/efibooteditor / removeRows

Method removeRows

src/bootentrylistmodel.cpp:308–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308auto BootEntryListModel::removeRows(int row, int count, const QModelIndex &parent) -> bool
309{
310 for(int c = 0; c < count; ++c)
311 {
312 auto command = new RemoveBootEntryCommand{*this, parent, row};
313 if(!undo_stack)
314 {
315 command->redo();
316 delete command;
317 continue;
318 }
319
320 undo_stack->push(command);
321 }
322
323 return true;
324}
325
326auto BootEntryListModel::moveRows(const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild) -> bool
327{

Callers

nothing calls this directly

Calls 1

redoMethod · 0.45

Tested by

no test coverage detected