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

Method moveRows

src/devicepathproxymodel.cpp:81–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81auto DevicePathProxyModel::moveRows(const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild) -> bool
82{
83 if(!beginMoveRows(sourceParent, sourceRow, sourceRow + count, destinationParent, destinationChild))
84 return false;
85
86 for(int c = 0; c < count; ++c)
87 boot_entry_list_model->moveEntryFilePath(boot_entry_index, sourceRow, destinationChild + (sourceRow < destinationChild ? 0 : c));
88
89 endMoveRows();
90 return true;
91}
92
93void DevicePathProxyModel::clear()
94{

Callers

nothing calls this directly

Calls 1

moveEntryFilePathMethod · 0.80

Tested by

no test coverage detected