* @brief Resets the editor to the default transmit function template. */
| 381 | * @brief Resets the editor to the default transmit function template. |
| 382 | */ |
| 383 | void 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. |
nothing calls this directly
no test coverage detected