* @brief Sets source[0].frameParserCode and emits frameParserCodeChanged. */
| 4847 | * @brief Sets source[0].frameParserCode and emits frameParserCodeChanged. |
| 4848 | */ |
| 4849 | void DataModel::ProjectModel::setFrameParserCode(const QString& code) |
| 4850 | { |
| 4851 | if (m_sources.empty() || code == m_sources[0].frameParserCode) |
| 4852 | return; |
| 4853 | |
| 4854 | m_sources[0].frameParserCode = code; |
| 4855 | setModified(true); |
| 4856 | Q_EMIT frameParserCodeChanged(); |
| 4857 | Q_EMIT sourceFrameParserCodeChanged(0); |
| 4858 | } |
| 4859 | |
| 4860 | /** |
| 4861 | * @brief Sets the scripting language for the global frame parser (source 0). |
no test coverage detected