summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2646e15)
API cleaned up a bit to make it a bit more generic
import CameraPlus 1.0
MouseArea {
import CameraPlus 1.0
MouseArea {
- id: zoomCancel
- property Item zoomCapture
-
- enabled: zoomCapture.zoomPressed
-
- onPressed: {
- zoomCancel.zoomCapture.zoomPressed = false
- zoomCancel.canceled()
- }
Rectangle {
anchors.top: parent.top
Rectangle {
anchors.top: parent.top
onReleased: parent.captureImage()
}
onReleased: parent.captureImage()
}
- zoomCapture: zoomCapture
- onCanceled: {
+ enabled: zoomCapture.zoomPressed
+ onPressed: {
+ zoomCapture.zoomPressed = false
if (!autoFocusTimer.running) {
stopAutoFocus()
}
if (!autoFocusTimer.running) {
stopAutoFocus()
}
onReleased: overlay.toggleRecording()
}
onReleased: overlay.toggleRecording()
}
- zoomCapture: zoomCapture
+ enabled: zoomCapture.zoomPressed
+ onPressed: zoomCapture.zoomPressed = false
<file>VideoTorchButton.qml</file>
<file>VideoWhiteBalanceButton.qml</file>
<file>ZoomCaptureButton.qml</file>
<file>VideoTorchButton.qml</file>
<file>VideoWhiteBalanceButton.qml</file>
<file>ZoomCaptureButton.qml</file>
- <file>ZoomCaptureCancel.qml</file>
+ <file>CaptureCancel.qml</file>
<file>ZoomSlider.qml</file>
</qresource>
</RCC>
<file>ZoomSlider.qml</file>
</qresource>
</RCC>