X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=blobdiff_plain;f=qml%2FCameraSettings.qml;h=cf179691e4e814a68653aa0016d805afb916ed40;hp=1a504a3e37d0404133618a3b41964f1dd57932d8;hb=af1b7b6f1d5454a1daaa913e457715f579d6e5be;hpb=1076294f16fd59f1c50bf8b1484455067978c665 diff --git a/qml/CameraSettings.qml b/qml/CameraSettings.qml index 1a504a3..cf17969 100644 --- a/qml/CameraSettings.qml +++ b/qml/CameraSettings.qml @@ -60,7 +60,7 @@ Column { } } - TextSwitch { + CameraTextSwitch { text: qsTr("Show grid lines") // We have to do it that way because QML complains about a binding @@ -82,7 +82,7 @@ Column { onTextChanged: settings.creatorName = text } - TextSwitch { + CameraTextSwitch { text: qsTr("Use zoom keys for capture") // We have to do it that way because QML complains about a binding @@ -91,7 +91,16 @@ Column { onCheckedChanged: settings.zoomAsShutter = checked } - TextSwitch { + CameraTextSwitch { + text: qsTr("Use proximity sensor for capture") + + // 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.proximityAsShutter + onCheckedChanged: settings.proximityAsShutter = checked + } + + CameraTextSwitch { text: qsTr("Enable camera sounds") // We have to do it that way because QML complains about a binding @@ -100,7 +109,7 @@ Column { onCheckedChanged: settings.soundEnabled = checked } - TextSwitch { + CameraTextSwitch { id: useGps text: qsTr("Use GPS") @@ -110,7 +119,7 @@ Column { onCheckedChanged: settings.useGps = checked } - TextSwitch { + CameraTextSwitch { // TODO: transition when hiding/showing and we should scroll a bit to show it visible: useGps.checked