MCPcopy Create free account
hub / github.com/Atarity/Lightpack / start

Method start

Software/src/MoodLampManager.cpp:58–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void MoodLampManager::start(bool isEnabled)
59{
60 DEBUG_LOW_LEVEL << Q_FUNC_INFO << isEnabled;
61
62 m_isMoodLampEnabled = isEnabled;
63
64 if (m_isMoodLampEnabled)
65 {
66 // Clear saved color for force emit signal after check m_rgbSaved != rgb in updateColors()
67 // This is usable if start is called after API unlock, and we should force set current color
68 m_rgbSaved = 0;
69 updateColors();
70 }
71 else
72 m_timer.stop();
73}
74
75void MoodLampManager::setCurrentColor(QColor color)
76{

Callers 2

setLiquidModeMethod · 0.45
updateColorsMethod · 0.45

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected