* @brief Sets the toggle state and transmits 1 (on) or 0 (off). */
| 42 | * @brief Sets the toggle state and transmits 1 (on) or 0 (off). |
| 43 | */ |
| 44 | void 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 | } |
no outgoing calls
no test coverage detected