* @brief Returns the descriptor of the source's selected template (default when unset). */
| 829 | * @brief Returns the descriptor of the source's selected template (default when unset). |
| 830 | */ |
| 831 | const DataModel::INativeTemplate* DataModel::FrameParserModel::currentTemplate() const |
| 832 | { |
| 833 | const QString id = ProjectModel::instance().frameParserTemplate(m_sourceId); |
| 834 | if (const auto* tmpl = nativeTemplateById(id)) |
| 835 | return tmpl; |
| 836 | |
| 837 | return nativeTemplateById(defaultNativeTemplateId()); |
| 838 | } |
| 839 | |
| 840 | /** |
| 841 | * @brief Validates params by building a throwaway parser instance. |
nothing calls this directly
no test coverage detected