video scene button should not be visible while recording
[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                 mode: cameraMode.mode
24                 onModeChanged: {
25                         cameraMode.set(mode);
26                 }
27         }
28
29         PreviewImage {
30                 id: preview
31         }
32
33         ZoomSlider {
34                 id: zoom
35                 camera: cam
36                 anchors.top: parent.top
37                 anchors.topMargin: 0
38                 anchors.horizontalCenter: parent.horizontalCenter
39                 visible: controlsVisible
40         }
41 }