* @brief Returns the registry index of the source's template (default template if unset). */
| 128 | * @brief Returns the registry index of the source's template (default template if unset). |
| 129 | */ |
| 130 | int DataModel::FrameParserModel::templateIndex() const |
| 131 | { |
| 132 | const QString id = ProjectModel::instance().frameParserTemplate(m_sourceId); |
| 133 | const auto& templates = nativeTemplates(); |
| 134 | for (int i = 0; i < templates.size(); ++i) |
| 135 | if (templates.at(i)->id() == id) |
| 136 | return i; |
| 137 | |
| 138 | return 0; |
| 139 | } |
| 140 | |
| 141 | /** |
| 142 | * @brief Returns the current parameter validation error, or an empty string. |
nothing calls this directly
no test coverage detected