MCPcopy Create free account
hub / github.com/AntiMicroX/antimicrox / enableFlashes

Method enableFlashes

src/joysensorbuttonpushbutton.cpp:64–71  ·  view source on GitHub ↗

* @brief Enables highlight when the sensor axis is moved */

Source from the content-addressed store, hash-verified

62 * @brief Enables highlight when the sensor axis is moved
63 */
64void JoySensorButtonPushButton::enableFlashes()
65{
66 if (m_button != nullptr)
67 {
68 connect(m_button, &JoySensorButton::clicked, this, &JoySensorButtonPushButton::flash, Qt::QueuedConnection);
69 connect(m_button, &JoySensorButton::released, this, &JoySensorButtonPushButton::unflash, Qt::QueuedConnection);
70 }
71}
72
73/**
74 * @brief Generate the string that will be displayed on the button

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected