Set the opacity for the torch button to 0.5
[harmattan/cameraplus] / qml / CheckButton.qml
1 // -*- qml -*-
2 import QtQuick 1.1
3 import com.nokia.meego 1.1
4
5 Button {
6         id: button
7         property string normalIcon: ""
8         property string checkedIcon: ""
9         property QtObject controller: null
10         property QtObject fader: null
11         property int value: -1
12
13         width: visible ? 64 : 0
14         height: visible ? 64 : 0
15         iconSource: !visible ? "" : controller.value == value ? checkedIcon : normalIcon
16         onClicked: { controller.value = value; close(); }
17 }