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:
Niklas Söderlund 2019-09-30 23:42:59 +02:00
parent 82bf40e1f0
commit 5d8ae4f488

View file

@ -132,6 +132,7 @@ void QtEventDispatcher::timerEvent(QTimerEvent *event)
{
Timer *timer = timers_[event->timerId()];
timer->stop();
timer->timeout.emit(timer);
}
void QtEventDispatcher::processEvents()