3 import com.nokia.meego 1.1
9 property alias value: wb.value
11 timerConstraints: true // Never trigger
13 iconSource: wbIcon(wb.value);
15 title: qsTr("White balance mode");
21 value: WhiteBalance.Auto
24 function wbIcon(val) {
25 var x = row.children.length;
27 for (i = 0; i < x; i++) {
28 if (row.children[i].value == val) {
29 return row.children[i].normalIcon;
36 height: button.checked ? 64 : 0
37 width: button.checked ? (children.length * height) + (children.length - 1) * spacing : 0
41 // TODO: seems animation is not working
42 PropertyAnimation { duration: 250; }
46 normalIcon: "image://theme/icon-m-camera-whitebalance-auto"
47 checkedIcon: "image://theme/icon-m-camera-whitebalance-auto-selected"
49 value: WhiteBalance.Auto
54 normalIcon: "image://theme/icon-m-camera-whitebalance-cloudy"
55 checkedIcon: "image://theme/icon-m-camera-whitebalance-cloudy-selected"
57 value: WhiteBalance.Cloudy
62 normalIcon: "image://theme/icon-m-camera-whitebalance-sunny"
63 checkedIcon: "image://theme/icon-m-camera-whitebalance-sunny-selected"
65 value: WhiteBalance.Sunset
70 normalIcon: "image://theme/icon-m-camera-whitebalance-tungsten"
71 checkedIcon: "image://theme/icon-m-camera-whitebalance-tungsten-selected"
73 value: WhiteBalance.Tungsten
78 normalIcon: "image://theme/icon-m-camera-whitebalance-fluorescent"
79 checkedIcon: "image://theme/icon-m-camera-whitebalance-fluorescent-selected"
81 value: WhiteBalance.Flourescent