Multiple fixes:
authorMohammed Sameer <msameer@foolab.org>
Fri, 2 Aug 2013 22:09:27 +0000 (01:09 +0300)
committerMohammed Sameer <msameer@foolab.org>
Fri, 2 Aug 2013 22:09:27 +0000 (01:09 +0300)
commit280d9ea1d44e855d0cc364dac5f59945b3ce3856
tree02be20231dd5f62f3b7f56916ffc9becc0be18a0
parentb71b2446ccac22e2e6ebaed18bcad2b3e0504ef3
Multiple fixes:

- Drop QtCamViewfinder::setDevice() as it's not really needed
- Added Camera::prepareForDeviceChange() signal to notify about the destruction of device.

Viewfinder will reset QtCamDevice viewfinder when Camera emits prepareForDeviceChange().
This allows us to properly restart the pipeline for the secondary camera.
declarative/camera.cpp
declarative/camera.h
declarative/viewfinder.cpp
declarative/viewfinder.h
lib/qtcamdevice.cpp
lib/qtcamgraphicsviewfinder.cpp
lib/qtcamgraphicsviewfinder.h
lib/qtcamviewfinder.h