diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-09-30 23:42:59 +0200 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-10-01 15:26:22 +0200 |
commit | 5d8ae4f488177f7e7b7aa27d1a5c9977b0bddfee (patch) | |
tree | 3b59a1e1fb096a61f974d4f082f6a95768aff77d /src | |
parent | 82bf40e1f00a23430fd9ae9bc085d809369dc3a1 (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>
Diffstat (limited to 'src')
-rw-r--r-- | src/qcam/qt_event_dispatcher.cpp | 1 |
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() |