* @brief Clears test fields and resets the editor to the default placeholder. */
| 367 | * @brief Clears test fields and resets the editor to the default placeholder. |
| 368 | */ |
| 369 | void 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. |
nothing calls this directly
no test coverage detected