* @brief Stages a new control script and pushes it to the live runtime. */
| 2185 | * @brief Stages a new control script and pushes it to the live runtime. |
| 2186 | */ |
| 2187 | void 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. |
no test coverage detected