diff options
author | jan Iversen <jani@apache.org> | 2018-06-13 18:06:11 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-06-15 14:12:14 -0700 |
commit | b8eb348f546291c49e2d606649b3c85d23e43782 (patch) | |
tree | 8ca54d1f5aa363496de4b83e1b6200b92304a8a3 /mobile-widgets/qml/CloudCredentials.qml | |
parent | 62ca5e90e13d65235d3cd53feffd0cb62cfbac43 (diff) | |
download | subsurface-b8eb348f546291c49e2d606649b3c85d23e43782.tar.gz |
mobile: move settings from qmlmanager to qmlprefs
add settings variables/functions to qmlprefs
remove settings variables/functions from qmlmanager
change manager. to prefs. in qml files for setting variables/functions
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'mobile-widgets/qml/CloudCredentials.qml')
-rw-r--r-- | mobile-widgets/qml/CloudCredentials.qml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mobile-widgets/qml/CloudCredentials.qml b/mobile-widgets/qml/CloudCredentials.qml index 52a7162ce..b32323d05 100644 --- a/mobile-widgets/qml/CloudCredentials.qml +++ b/mobile-widgets/qml/CloudCredentials.qml @@ -15,9 +15,9 @@ Item { property string password: password.text; function saveCredentials() { - manager.cloudUserName = login.text - manager.cloudPassword = password.text - manager.cloudPin = pin.text + prefs.cloudUserName = login.text + prefs.cloudPassword = password.text + prefs.cloudPin = pin.text manager.saveCloudCredentials() } @@ -60,7 +60,7 @@ Item { Controls.TextField { id: login - text: manager.cloudUserName + text: prefs.cloudUserName visible: !rootItem.showPin Layout.fillWidth: true inputMethodHints: Qt.ImhEmailCharactersOnly | @@ -76,7 +76,7 @@ Item { Controls.TextField { id: password - text: manager.cloudPassword + text: prefs.cloudPassword visible: !rootItem.showPin echoMode: TextInput.PasswordEchoOnEdit inputMethodHints: Qt.ImhSensitiveData | @@ -146,7 +146,7 @@ Item { text: qsTr("No cloud mode") onClicked: { manager.syncToCloud = false - manager.credentialStatus = QMLManager.CS_NOCLOUD + manager.credentialStatus = QMLPrefs.CS_NOCLOUD manager.saveCloudCredentials() manager.openNoCloudRepo() } |