4 * This file is part of CameraPlus.
6 * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
32 text: qsTr("Camera settings")
37 text: qsTr("Show grid lines")
39 // We have to do it that way because QML complains about a binding
40 // loop for checked if we bind the checked property to the settings value.
41 Component.onCompleted: checked = settings.gridEnabled
43 onCheckedChanged: settings.gridEnabled = checked
47 text: qsTr("Creator name")
52 placeholderText: qsTr("Name or copyright")
54 text: settings.creatorName
55 onTextChanged: settings.creatorName = text
59 text: qsTr("Use zoom keys for capture")
61 // We have to do it that way because QML complains about a binding
62 // loop for checked if we bind the checked property to the settings value.
63 Component.onCompleted: checked = settings.zoomAsShutter
64 onCheckedChanged: settings.zoomAsShutter = checked
68 text: qsTr("Enable camera sounds")
70 // We have to do it that way because QML complains about a binding
71 // loop for checked if we bind the checked property to the settings value.
72 Component.onCompleted: checked = settings.soundEnabled
73 onCheckedChanged: settings.soundEnabled = checked
80 // We have to do it that way because QML complains about a binding
81 // loop for checked if we bind the checked property to the settings value.
82 Component.onCompleted: checked = settings.useGps
83 onCheckedChanged: settings.useGps = checked
87 // TODO: transition when hiding/showing and we should scroll a bit to show it
88 visible: useGps.checked
90 text: qsTr("Use geotags")
92 // We have to do it that way because QML complains about a binding
93 // loop for checked if we bind the checked property to the settings value.
94 Component.onCompleted: checked = settings.useGeotags
95 onCheckedChanged: settings.useGeotags = checked