diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-12-03 14:06:52 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-03 14:11:30 -0800 |
commit | 7a94360a6da6665ea42de29c39246a5ebc67dada (patch) | |
tree | ecd27cddb5f054476387d34f85d2065442249e4a /qt-mobile/qml/Preferences.qml | |
parent | 9ef475844dbe55540ca4f53932c27ab1ce59c09d (diff) | |
download | subsurface-7a94360a6da6665ea42de29c39246a5ebc67dada.tar.gz |
QML-UI: Split cloud credentials and other preferences
This makes the cloud credential entry page much simpler, separate page. It also
removes the two colums and uses the label of the check box instead of having a
separate label item.
The preferences page of course also gets simpler by doing this. Here I kept the
two columns, though.
Finally the code for the old context menu was removed - not sure why this was
still here.
Next I need to fix the savePreferences() call to do the right thing in each
case.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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() |