mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-25 01:25:08 +03:00
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:
parent
82bf40e1f0
commit
5d8ae4f488
1 changed files with 1 additions and 0 deletions
|
@ -132,6 +132,7 @@ void QtEventDispatcher::timerEvent(QTimerEvent *event)
|
|||
{
|
||||
Timer *timer = timers_[event->timerId()];
|
||||
timer->stop();
|
||||
timer->timeout.emit(timer);
|
||||
}
|
||||
|
||||
void QtEventDispatcher::processEvents()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue