MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setFrameParserCode

Method setFrameParserCode

app/src/DataModel/ProjectModel.cpp:4849–4858  ·  view source on GitHub ↗

* @brief Sets source[0].frameParserCode and emits frameParserCodeChanged. */

Source from the content-addressed store, hash-verified

4847 * @brief Sets source[0].frameParserCode and emits frameParserCodeChanged.
4848 */
4849void 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).

Callers 2

parserSetCodeMethod · 0.80
setTemplateIdxMethod · 0.80

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected