3 import com.nokia.meego 1.1
9 property int value: settings.videoSceneMode
11 iconSource: sceneIcon(scene.value);
13 title: qsTr("Scene mode");
15 function sceneIcon(val) {
16 var x = row.children.length;
18 for (i = 0; i < x; i++) {
19 if (row.children[i].value == val) {
20 return row.children[i].normalIcon;
27 height: button.checked ? 64 : 0
28 width: button.checked ? (children.length * height) + (children.length - 1) * spacing : 0
32 // TODO: seems animation is not working
33 PropertyAnimation { duration: 250; }
37 normalIcon: "image://theme/icon-m-camera-scene-auto"
38 checkedIcon: "image://theme/icon-m-camera-scene-auto-selected"
39 savedValue: settings.videoSceneMode
40 onClicked: settings.videoSceneMode = value;
45 normalIcon: "image://theme/icon-m-camera-video-night"
46 checkedIcon: "image://theme/icon-m-camera-video-night-selected"
47 savedValue: settings.videoSceneMode
48 onClicked: settings.videoSceneMode = value;