3 import com.nokia.meego 1.1
9 property alias value: scene.value
11 iconSource: sceneIcon(scene.value);
13 title: qsTr("Scene mode");
22 function sceneIcon(val) {
23 var x = row.children.length;
25 for (i = 0; i < x; i++) {
26 if (row.children[i].value == val) {
27 return row.children[i].normalIcon;
34 height: button.checked ? 64 : 0
35 width: button.checked ? (children.length * height) + (children.length - 1) * spacing : 0
39 // TODO: seems animation is not working
40 PropertyAnimation { duration: 250; }
44 normalIcon: "image://theme/icon-m-camera-scene-auto"
45 checkedIcon: "image://theme/icon-m-camera-scene-auto-selected"
51 normalIcon: "image://theme/icon-m-camera-scene-macro"
52 checkedIcon: "image://theme/icon-m-camera-scene-macro-selected"
58 normalIcon: "image://theme/icon-m-camera-scene-landscape"
59 checkedIcon: "image://theme/icon-m-camera-scene-landscape-selected"
61 value: Scene.Landscape
65 normalIcon: "image://theme/icon-m-camera-scene-portrait"
66 checkedIcon: "image://theme/icon-m-camera-scene-portrait-selected"
72 normalIcon: "image://theme/icon-m-camera-night"
73 checkedIcon: "image://theme/icon-m-camera-night-selected"
79 normalIcon: "image://theme/icon-m-camera-scene-sports"
80 checkedIcon: "image://theme/icon-m-camera-scene-sports-selected"