Changed QCamera::captureMode property to QFlags
This enables the expression of extra camera modes like viewfinder only or capture during video recording. Change-Id: Ie02fdeef5eb7fd6fc2f133c1afb0141e37c22b06 Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com> Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
a6268601c9
commit
53d71baed3
@@ -338,7 +338,7 @@ void Camera::stopCamera()
|
||||
void Camera::updateCaptureMode()
|
||||
{
|
||||
int tabIndex = ui->captureWidget->currentIndex();
|
||||
QCamera::CaptureMode captureMode = tabIndex == 0 ? QCamera::CaptureStillImage : QCamera::CaptureVideo;
|
||||
QCamera::CaptureModes captureMode = tabIndex == 0 ? QCamera::CaptureStillImage : QCamera::CaptureVideo;
|
||||
|
||||
if (camera->isCaptureModeSupported(captureMode))
|
||||
camera->setCaptureMode(captureMode);
|
||||
|
||||
Reference in New Issue
Block a user