Enable face detection settings if NoFaceDetection quirk is not present
NoSceneModeChangeDuringRecording = QtCamQuirks::NoSceneModeChangeDuringRecording,
NoRedEyeFlash = QtCamQuirks::NoRedEyeFlash,
NoTouchFocus = QtCamQuirks::NoTouchFocus,
+ NoFaceDetection = QtCamQuirks::NoFaceDetection,
} QuirkType;
Q_INVOKABLE bool hasQuirk(const QuirkType& type);
NoSceneModeChangeDuringRecording = 0x10,
NoRedEyeFlash = 0x20,
NoTouchFocus = 0x40,
+ NoFaceDetection = 0x80,
} QuirkType;
Q_DECLARE_FLAGS(QuirkTypes, QuirkType);
// loop for checked if we bind the checked property to the settings value.
Component.onCompleted: checked = settings.faceDetectionEnabled
onCheckedChanged: settings.faceDetectionEnabled = checked
+ visible: !camera.quirks.hasQuirk(Quirks.NoFaceDetection)
}
CameraSettings {