qcam: Fix timers not emitting timeout signal
The timer signal was never emitted in QtEventDispatcher::timerEvent(), this results in timers not working as designed running under the Qt event loop. Fix this by emitting the signal on timeout. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -132,6 +132,7 @@ void QtEventDispatcher::timerEvent(QTimerEvent *event)
|
||||
{
|
||||
Timer *timer = timers_[event->timerId()];
|
||||
timer->stop();
|
||||
timer->timeout.emit(timer);
|
||||
}
|
||||
|
||||
void QtEventDispatcher::processEvents()
|
||||
|
||||
Reference in New Issue
Block a user