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

Method onClear

app/src/MQTT/PublisherScriptEditor.cpp:369–375  ·  view source on GitHub ↗

* @brief Clears test fields and resets the editor to the default placeholder. */

Source from the content-addressed store, hash-verified

367 * @brief Clears test fields and resets the editor to the default placeholder.
368 */
369void MQTT::PublisherScriptEditor::onClear()
370{
371 m_editor->setPlainText(defaultPlaceholder(m_language));
372 m_testInput->clear();
373 m_testOutput->setText(QStringLiteral("--"));
374 m_templateCombo->setCurrentIndex(0);
375}
376
377/**
378 * @brief Loads the selected template's code (Lua or JS) into the editor.

Callers

nothing calls this directly

Calls 2

setCurrentIndexMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected