diff options
author | Gatis Paeglis <gatis.paeglis@digia.com> | 2013-10-10 16:47:32 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@digia.com> | 2013-10-14 11:49:23 +0300 |
commit | ed36c5f65fb243098a6351abea3a00ba9caa1dcd (patch) | |
tree | 7d37c598e4ee4a15a8408c953b5dd652e7a50872 /basicsuite | |
parent | 9c48ce0535c7a89e32a4b0f932dc3f61e973018a (diff) |
[Camera example] save captured images to /data/images
This allows a user to browse through the photos from the
"Photo Gallery" example. "Photo Gallery" looks for images
in /data/images.
Disable "video recording feature".
Change-Id: Ib7c4d123c0e2fa5f9283dba3131e4accd576054b
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
Diffstat (limited to 'basicsuite')
-rw-r--r-- | basicsuite/Camera/Controls.qml | 42 | ||||
-rw-r--r-- | basicsuite/Camera/description.txt | 2 | ||||
-rw-r--r-- | basicsuite/Camera/main.qml | 6 |
3 files changed, 25 insertions, 25 deletions
diff --git a/basicsuite/Camera/Controls.qml b/basicsuite/Camera/Controls.qml index 63f750b..7f5e82d 100644 --- a/basicsuite/Camera/Controls.qml +++ b/basicsuite/Camera/Controls.qml @@ -5,7 +5,7 @@ Item { id: controlsRoot anchors.fill: parent - property alias cameraMode: cameraModeControl.selectedValue +// property alias cameraMode: cameraModeControl.selectedValue property alias requestedZoom: zoomControl.requestedZoom property alias actualZoom: zoomControl.actualZoom @@ -37,26 +37,26 @@ Item { anchors.bottomMargin: 50 } - CameraSetting { - id: cameraModeControl - anchors.right: parent.right - anchors.rightMargin: 20 - anchors.bottom: parent.bottom - anchors.bottomMargin: 20 - title: "MODE" - model: ListModel { - ListElement { - name: "Picture" - value: Camera.CaptureStillImage - } - ListElement { - name: "Video" - value: Camera.CaptureVideo - } - } - onCountChanged: currentIndex = 0 - enabled: controlsRoot.captureReady - } +// CameraSetting { +// id: cameraModeControl +// anchors.right: parent.right +// anchors.rightMargin: 20 +// anchors.bottom: parent.bottom +// anchors.bottomMargin: 20 +// title: "MODE" +// model: ListModel { +// ListElement { +// name: "Picture" +// value: Camera.CaptureStillImage +// } +// ListElement { +// name: "Video" +// value: Camera.CaptureVideo +// } +// } +// onCountChanged: currentIndex = 0 +// enabled: controlsRoot.captureReady +// } RecordingTime { anchors.right: parent.right diff --git a/basicsuite/Camera/description.txt b/basicsuite/Camera/description.txt index 7e94e89..71c3c44 100644 --- a/basicsuite/Camera/description.txt +++ b/basicsuite/Camera/description.txt @@ -1,5 +1,5 @@ This example demonstrates the use of the camera features of Qt Multimedia with Qt Quick. -It can take pictures and record videos. Files are saved inside the 'DCIM' folder on the external storage. +Demo can be used to take pictures. Files are saved inside the /data/images/ folder and can be viewed with the "Photo Gallery" application. Camera parameters such as flash mode, scene mode or white balance can be changed. The availability of parameters depends on what the camera driver provides. diff --git a/basicsuite/Camera/main.qml b/basicsuite/Camera/main.qml index a1cc89c..6a428e4 100644 --- a/basicsuite/Camera/main.qml +++ b/basicsuite/Camera/main.qml @@ -43,7 +43,7 @@ Rectangle { onLockStatusChanged: { if (camera.lockStatus === Camera.Locked && captureWhenLocked) { - camera.imageCapture.capture(); + camera.imageCapture.captureToLocation("/data/images/"); captureWhenLocked = false; } } @@ -160,7 +160,7 @@ Rectangle { actualZoom: camera.digitalZoom maximumZoom: camera.maximumDigitalZoom - onCameraModeChanged: camera.captureMode = controls.cameraMode + //onCameraModeChanged: camera.captureMode = controls.cameraMode onFlashModeChanged: if (visible) camera.flash.mode = controls.flashMode onFocusModeChanged: if (visible) camera.focus.focusMode = controls.focusMode @@ -195,7 +195,7 @@ Rectangle { camera.captureWhenLocked = true; camera.searchAndLock(); } else { - camera.imageCapture.capture(); + camera.imageCapture.captureToLocation("/data/images/"); } } } |