projects
/
harmattan
/
cameraplus
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Cleanup and now listen to the settings mode property
[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
}