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

Method setControlScriptCode

app/src/DataModel/ProjectModel.cpp:2187–2196  ·  view source on GitHub ↗

* @brief Stages a new control script and pushes it to the live runtime. */

Source from the content-addressed store, hash-verified

2185 * @brief Stages a new control script and pushes it to the live runtime.
2186 */
2187void DataModel::ProjectModel::setControlScriptCode(const QString& code)
2188{
2189 if (m_controlScriptCode == code)
2190 return;
2191
2192 m_controlScriptCode = code;
2193 DataModel::ControlScript::instance().setCode(code);
2194 setModified(true);
2195 Q_EMIT controlScriptChanged();
2196}
2197
2198/**
2199 * @brief Sets the dashboard point count and syncs it to the Dashboard.

Callers 2

setScriptMethod · 0.80
ControlScriptEditorMethod · 0.80

Calls 1

setCodeMethod · 0.80

Tested by

no test coverage detected