X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=blobdiff_plain;f=qml%2FImageSettingsDialog.qml;h=5a64acfc7855699526fde3679a9e974ecc687007;hp=1b7fe97ab803e351177f9f46f5e78cc9cae47aa4;hb=acb6037c2c54ce53e7cda692b23a416c192cd02c;hpb=f6a1e69727a2ed7f6907995fa1f2200a70e7ca98 diff --git a/qml/ImageSettingsDialog.qml b/qml/ImageSettingsDialog.qml index 1b7fe97..5a64acf 100644 --- a/qml/ImageSettingsDialog.qml +++ b/qml/ImageSettingsDialog.qml @@ -125,6 +125,26 @@ Dialog { } } + Item { + width: parent.width + height: Math.max(enableFaceDetectionLabel.height, enableFaceDetection.height); + + Label { + id: enableFaceDetectionLabel + anchors.left: parent.left + text: qsTr("Enable face detection"); + } + + Switch { + id: enableFaceDetection + anchors.right: parent.right + // We have to do it that way because QML complains about a binding + // loop for checked if we bind the checked property to the settings value. + Component.onCompleted: checked = settings.faceDetectionEnabled; + onCheckedChanged: settings.faceDetectionEnabled = checked; + } + } + CameraSettings { anchors.horizontalCenter: parent.horizontalCenter }