* @brief Returns the source's checksum algorithm as a combobox index. */
| 220 | * @brief Returns the source's checksum algorithm as a combobox index. |
| 221 | */ |
| 222 | int DataModel::FrameParserModel::checksumIndex() const |
| 223 | { |
| 224 | const auto idx = IO::availableChecksums().indexOf(currentSource().checksumAlgorithm); |
| 225 | return idx >= 0 ? static_cast<int>(idx) : 0; |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * @brief Returns the source's frame start delimiter. |