- Item {
- width: parent.width
- height: Math.max(useGeotagsLabel.height, useGeotags.height);
-
- // TODO: transition when hiding/showing and we should scroll a bit to show it
- visible: useGps.checked
-
- Label {
- id: useGeotagsLabel
- anchors.left: parent.left
- text: qsTr("Use geotags");
- }
-
- Switch {
- id: useGeotags
- 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.useGeotags;
- onCheckedChanged: settings.useGeotags = checked;
- }
- }
+ // 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.gridEnabled
+
+ onCheckedChanged: settings.gridEnabled = checked
+ }
+
+ SectionHeader {
+ text: qsTr("Creator name")
+ width: parent.width
+ }
+
+ CameraTextField {
+ placeholderText: qsTr("Name or copyright")
+ width: parent.width
+ text: settings.creatorName
+ onTextChanged: settings.creatorName = text
+ }
+
+ TextSwitch {
+ text: qsTr("Use zoom keys 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.zoomAsShutter
+ onCheckedChanged: settings.zoomAsShutter = checked
+ }
+
+ TextSwitch {
+ text: qsTr("Enable camera sounds")
+
+ // 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.soundEnabled
+ onCheckedChanged: settings.soundEnabled = checked
+ }
+
+ TextSwitch {
+ id: useGps
+ text: qsTr("Use GPS")
+
+ // 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.useGps
+ onCheckedChanged: settings.useGps = checked
+ }
+
+ TextSwitch {
+ // TODO: transition when hiding/showing and we should scroll a bit to show it
+ visible: useGps.checked
+
+ text: qsTr("Use geotags")
+
+ // 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.useGeotags
+ onCheckedChanged: settings.useGeotags = checked
+ }