Don't set the camera mode when the settings change. ModeController will take care...
[harmattan/cameraplus] / qml / CameraPage.qml
1 // -*- qml -*-
2 import QtQuick 1.1
3 import com.nokia.meego 1.1
4 import QtCamera 1.0
5
6 Page {
7         property Camera cam: null
8         property bool controlsVisible: true
9
10         anchors.fill: parent
11
12         property alias previewAnimationRunning: preview.animationRunning
13
14         function setPreview(image) {
15                 preview.setPreview(image);
16         }
17
18         ModeButton {
19                 anchors.bottom: parent.bottom
20                 anchors.right: parent.right
21                 anchors.rightMargin: 20
22                 anchors.bottomMargin: 20
23         }
24
25         PreviewImage {
26                 id: preview
27         }
28
29         ZoomSlider {
30                 id: zoom
31                 camera: cam
32                 anchors.top: parent.top
33                 anchors.topMargin: 0
34                 anchors.horizontalCenter: parent.horizontalCenter
35                 visible: controlsVisible
36         }
37 }