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

Method reload

app/src/DataModel/Editors/PainterCodeEditor.cpp:449–456  ·  view source on GitHub ↗

* @brief Resets the editor to the default painter template. */

Source from the content-addressed store, hash-verified

447 * @brief Resets the editor to the default painter template.
448 */
449void DataModel::PainterCodeEditor::reload(bool guiTrigger)
450{
451 Q_UNUSED(guiTrigger)
452 m_widget.setPlainText(defaultTemplate());
453 m_widget.document()->clearUndoRedoStacks();
454 m_widget.document()->setModified(false);
455 Q_EMIT modifiedChanged();
456}
457
458/**
459 * @brief Returns the bundled default-template source.

Callers

nothing calls this directly

Calls 1

setModifiedMethod · 0.80

Tested by

no test coverage detected