diff options
Diffstat (limited to 'qt-mobile/qml/Preferences.qml')
-rw-r--r-- | qt-mobile/qml/Preferences.qml | 57 |
1 files changed, 2 insertions, 55 deletions
diff --git a/qt-mobile/qml/Preferences.qml b/qt-mobile/qml/Preferences.qml index 575474ac8..de70d17b0 100644 --- a/qt-mobile/qml/Preferences.qml +++ b/qt-mobile/qml/Preferences.qml @@ -7,71 +7,21 @@ import org.kde.plasma.mobilecomponents 0.2 as MobileComponents import org.subsurfacedivelog.mobile 1.0 Item { - id: loginWindow + id: preferencesWindow signal accept - property string username: login.text; - property string password: password.text; - property bool issave: savePassword.checked; - GridLayout { columns: 2 anchors.fill: parent anchors.margins: MobileComponents.Units.gridUnit MobileComponents.Heading { - text: "Cloud credentials" + text: "Preferences" Layout.bottomMargin: MobileComponents.Units.largeSpacing / 2 Layout.columnSpan: 2 } - Label { - text: "Email" - Layout.alignment: Qt.AlignRight - } - - TextField { - id: login - text: manager.cloudUserName - Layout.fillWidth: true - } - - Label { - text: "Password" - Layout.alignment: Qt.AlignRight - } - - TextField { - id: password - text: manager.cloudPassword - echoMode: TextInput.Password - Layout.fillWidth: true - } - - Label { - text: "Show password" - Layout.alignment: Qt.AlignRight - } - - CheckBox { - checked: false - id: showPassword - onCheckedChanged: { - password.echoMode = checked ? TextInput.Normal : TextInput.Password - } - } - - Label { - text: "Remember" - Layout.alignment: Qt.AlignRight - } - - CheckBox { - checked: manager.saveCloudPassword - id: savePassword - } - MobileComponents.Heading { text: "Subsurface GPS data webservice" Layout.topMargin: MobileComponents.Units.largeSpacing @@ -110,9 +60,6 @@ Item { text: "Save" anchors.centerIn: parent onClicked: { - manager.cloudUserName = login.text - manager.cloudPassword = password.text - manager.saveCloudPassword = savePassword.checked manager.distanceThreshold = distanceThreshold.text manager.timeThreshold = timeThreshold.text manager.savePreferences() |