| 122 | } |
| 123 | |
| 124 | void GrabManager::start(bool isGrabEnabled) |
| 125 | { |
| 126 | DEBUG_LOW_LEVEL << Q_FUNC_INFO << isGrabEnabled; |
| 127 | |
| 128 | clearColorsNew(); |
| 129 | |
| 130 | if (m_grabber != NULL) { |
| 131 | if (isGrabEnabled) { |
| 132 | m_timerUpdateFPS->start(); |
| 133 | m_grabber->startGrabbing(); |
| 134 | } else { |
| 135 | clearColorsCurrent(); |
| 136 | m_timerUpdateFPS->stop(); |
| 137 | m_grabber->stopGrabbing(); |
| 138 | emit ambilightTimeOfUpdatingColors(0); |
| 139 | } |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | void GrabManager::onGrabberTypeChanged(const Grab::GrabberType grabberType) |
| 144 | { |
no test coverage detected