3 import com.nokia.meego 1.1
9 property alias value: flash.value
11 iconSource: flashIcon(flash.value);
13 title: qsTr("Flash mode");
18 value: settings.imageFlashMode
21 function flashIcon(val) {
22 var x = row.children.length;
24 for (i = 0; i < x; i++) {
25 if (row.children[i].value == val) {
26 return row.children[i].normalIcon;
33 height: button.checked ? 64 : 0
34 width: button.checked ? (children.length * height) + (children.length - 1) * spacing : 0
38 // TODO: seems animation is not working
39 PropertyAnimation { duration: 250; }
43 normalIcon: "image://theme/icon-m-camera-flash-auto"
44 checkedIcon: "image://theme/icon-m-camera-flash-auto-pressed"
45 onClicked: settings.imageFlashMode = value;
47 savedValue: settings.imageFlashMode
51 normalIcon: "image://theme/icon-m-camera-flash-always"
52 checkedIcon: "image://theme/icon-m-camera-flash-always-pressed"
53 onClicked: settings.imageFlashMode = value;
55 savedValue: settings.imageFlashMode
59 normalIcon: "image://theme/icon-m-camera-flash-off"
60 checkedIcon: "image://theme/icon-m-camera-flash-off-pressed"
61 onClicked: settings.imageFlashMode = value;
63 savedValue: settings.imageFlashMode
67 normalIcon: "image://theme/icon-m-camera-flash-red-eye"
68 checkedIcon: "image://theme/icon-m-camera-flash-red-eye-pressed"
69 onClicked: settings.imageFlashMode = value;
71 savedValue: settings.imageFlashMode