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

Method setChecked

app/src/UI/Widgets/Output/Toggle.cpp:44–51  ·  view source on GitHub ↗

* @brief Sets the toggle state and transmits 1 (on) or 0 (off). */

Source from the content-addressed store, hash-verified

42 * @brief Sets the toggle state and transmits 1 (on) or 0 (off).
43 */
44void Widgets::Output::Toggle::setChecked(bool checked)
45{
46 if (m_checked != checked) {
47 m_checked = checked;
48 Q_EMIT checkedChanged();
49 sendValue(m_checked ? 1 : 0);
50 }
51}

Callers 2

resetFieldsMethod · 0.80
setupWidgetsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected