| 46 | } |
| 47 | |
| 48 | auto DevicePathProxyModel::setData(const QModelIndex &index, const QVariant &value, int role) -> bool |
| 49 | { |
| 50 | if(role != Qt::EditRole) |
| 51 | return false; |
| 52 | |
| 53 | if(!index.isValid() || !checkIndex(index)) |
| 54 | return false; |
| 55 | |
| 56 | boot_entry_list_model->setEntryFilePath(boot_entry_index, index.row(), *value.value<const FilePath::ANY *>()); |
| 57 | Q_EMIT dataChanged(index, index, {role}); |
| 58 | return true; |
| 59 | } |
| 60 | |
| 61 | auto DevicePathProxyModel::insertRows(int row, int count, const QModelIndex &parent) -> bool |
| 62 | { |
nothing calls this directly
no test coverage detected