07e0688e490f755fdb50021343852b3b38f16a54
[harmattan/cameraplus] / qml / VideoTorchButton.qml
1 // -*- qml -*-
2 import QtQuick 1.1
3 import com.nokia.meego 1.1
4 import QtCamera 1.0
5
6 Button {
7         id: button
8         width: 56
9         height: 56
10         opacity: 0.5
11
12         iconSource: torch.on ? "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-torch-on.png" : "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-torch-off.png"
13         onClicked: torch.on = !torch.on
14         VideoTorch {
15                 id: torch
16                 camera: cam
17         }
18 }