Added NoFaceDetection quirk
authorMohammed Sameer <msameer@foolab.org>
Sun, 18 Aug 2013 19:23:31 +0000 (22:23 +0300)
committerMohammed Sameer <msameer@foolab.org>
Sun, 18 Aug 2013 19:23:31 +0000 (22:23 +0300)
Enable face detection settings if NoFaceDetection quirk is not present

declarative/quirks.h
lib/qtcamquirks.h
qml/ImageModeSettings.qml

index 2d43dff..af46f84 100644 (file)
@@ -43,6 +43,7 @@ public:
     NoSceneModeChangeDuringRecording = QtCamQuirks::NoSceneModeChangeDuringRecording,
     NoRedEyeFlash = QtCamQuirks::NoRedEyeFlash,
     NoTouchFocus = QtCamQuirks::NoTouchFocus,
+    NoFaceDetection = QtCamQuirks::NoFaceDetection,
   } QuirkType;
 
   Q_INVOKABLE bool hasQuirk(const QuirkType& type);
index 23fc8eb..5047868 100644 (file)
@@ -42,6 +42,7 @@ public:
     NoSceneModeChangeDuringRecording = 0x10,
     NoRedEyeFlash = 0x20,
     NoTouchFocus = 0x40,
+    NoFaceDetection = 0x80,
   } QuirkType;
 
   Q_DECLARE_FLAGS(QuirkTypes, QuirkType);
index 0cc8ff2..66bbf7d 100644 (file)
@@ -53,6 +53,7 @@ Flickable {
             // 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 {