3 import com.nokia.meego 1.1
9 property alias value: flash.value
11 iconSource: flashIcon(flash.value);
13 title: qsTr("Flash mode");
22 function flashIcon(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-flash-auto"
45 checkedIcon: "image://theme/icon-m-camera-flash-auto-pressed"
51 normalIcon: "image://theme/icon-m-camera-flash-always"
52 checkedIcon: "image://theme/icon-m-camera-flash-always-pressed"
58 normalIcon: "image://theme/icon-m-camera-flash-off"
59 checkedIcon: "image://theme/icon-m-camera-flash-off-pressed"
65 normalIcon: "image://theme/icon-m-camera-flash-red-eye"
66 checkedIcon: "image://theme/icon-m-camera-flash-red-eye-pressed"