summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-09-30 23:42:59 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-10-01 15:26:22 +0200
commit5d8ae4f488177f7e7b7aa27d1a5c9977b0bddfee (patch)
tree3b59a1e1fb096a61f974d4f082f6a95768aff77d
parent82bf40e1f00a23430fd9ae9bc085d809369dc3a1 (diff)
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>
-rw-r--r--src/qcam/qt_event_dispatcher.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qcam/qt_event_dispatcher.cpp b/src/qcam/qt_event_dispatcher.cpp
index e39c6edb..994af3ea 100644
--- a/src/qcam/qt_event_dispatcher.cpp
+++ b/src/qcam/qt_event_dispatcher.cpp
@@ -132,6 +132,7 @@ void QtEventDispatcher::timerEvent(QTimerEvent *event)
{
Timer *timer = timers_[event->timerId()];
timer->stop();
+ timer->timeout.emit(timer);
}
void QtEventDispatcher::processEvents()