property bool modesVisible: true
property bool standbyVisible: true
property bool focusReticleVisible: true
+ property bool enableViewfinder: true
property alias previewAnimationRunning: preview.animationRunning
}
onStatusChanged: {
- if (status == PageStatus.Active) {
+ if (status == PageStatus.Activating && enableViewfinder) {
+ cam.renderingEnabled = true;
+ }
+ else if (status == PageStatus.Active) {
focusReticle.setRegionOfInterest();
+
+ if (!enableViewfinder) {
+ cam.renderingEnabled = false;
+ }
}
}