| 79 | } |
| 80 | |
| 81 | auto 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 | |
| 93 | void DevicePathProxyModel::clear() |
| 94 | { |
nothing calls this directly
no test coverage detected