3 import com.nokia.meego 1.1
10 property alias value: ct.value
12 timerConstraints: true // Never trigger
14 iconSource: ctIcon(ct.value);
16 title: qsTr("Color filter");
22 value: ColorTone.Normal
25 function ctIcon(val) {
26 var x = row.children.length;
28 for (i = 0; i < x; i++) {
29 if (row.children[i].value == val) {
30 return row.children[i].normalIcon;
37 height: button.checked ? 64 : 0
38 width: button.checked ? (children.length * height) + (children.length - 1) * spacing : 0
42 // TODO: seems animation is not working
43 PropertyAnimation { duration: 250; }
47 normalIcon: "image://theme/icon-m-camera-no-filter"
48 checkedIcon: "image://theme/icon-m-camera-no-filter-selected"
50 value: ColorTone.Normal
55 normalIcon: "image://theme/icon-m-camera-filter-black-white"
56 checkedIcon: "image://theme/icon-m-camera-filter-black-white-selected"
58 value: ColorTone.GrayScale
63 normalIcon: "image://theme/icon-m-camera-filter-sepia"
64 checkedIcon: "image://theme/icon-m-camera-filter-sepia-selected"
66 value: ColorTone.Sepia
71 normalIcon: "image://theme/icon-m-camera-filter-vivid"
72 checkedIcon: "image://theme/icon-m-camera-filter-vivid-selected"
74 value: ColorTone.Vivid
79 normalIcon: "image://theme/icon-m-camera-filter-negative"
80 checkedIcon: "image://theme/icon-m-camera-filter-negative-selected"
82 value: ColorTone.Negative
87 normalIcon: "image://theme/icon-m-camera-filter-solarize"
88 checkedIcon: "image://theme/icon-m-camera-filter-solarize-selected"
90 value: ColorTone.Solarize