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

Method reload

app/src/DataModel/Editors/OutputCodeEditor.cpp:383–390  ·  view source on GitHub ↗

* @brief Resets the editor to the default transmit function template. */

Source from the content-addressed store, hash-verified

381 * @brief Resets the editor to the default transmit function template.
382 */
383void DataModel::OutputCodeEditor::reload(bool guiTrigger)
384{
385 Q_UNUSED(guiTrigger)
386 m_widget.setPlainText(defaultTemplate());
387 m_widget.document()->clearUndoRedoStacks();
388 m_widget.document()->setModified(false);
389 Q_EMIT modifiedChanged();
390}
391
392/**
393 * @brief Loads the default transmit function template from resources.

Callers

nothing calls this directly

Calls 1

setModifiedMethod · 0.80

Tested by

no test coverage detected