summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/CloudCredentials.qml
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2017-07-20 19:55:58 +1200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-23 03:20:58 +0900
commit8d2b59ff31a3ae3c5113e5ed09317187650ec8b1 (patch)
tree05021bb458a970aef072ad2eee8958b246b6edc1 /mobile-widgets/qml/CloudCredentials.qml
parent6655b37add8c1dbee23d734fa6eb8f4c0bec9aae (diff)
downloadsubsurface-8d2b59ff31a3ae3c5113e5ed09317187650ec8b1.tar.gz
Mobile Settings formatting
Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Diffstat (limited to 'mobile-widgets/qml/CloudCredentials.qml')
-rw-r--r--mobile-widgets/qml/CloudCredentials.qml12
1 files changed, 9 insertions, 3 deletions
diff --git a/mobile-widgets/qml/CloudCredentials.qml b/mobile-widgets/qml/CloudCredentials.qml
index 9a7a8c2bd..476e5e29b 100644
--- a/mobile-widgets/qml/CloudCredentials.qml
+++ b/mobile-widgets/qml/CloudCredentials.qml
@@ -14,6 +14,10 @@ Item {
property string username: login.text;
property string password: password.text;
+ property real gridWidth: loginWindow.width - Kirigami.Units.gridUnit
+ property real col1Width: gridWidth * 0.80
+ property real col2Width: gridWidth * 0.20
+
function saveCredentials() {
manager.cloudUserName = login.text
manager.cloudPassword = password.text
@@ -82,16 +86,18 @@ Item {
GridLayout {
columns: 2
+ Kirigami.Label {
+ text: qsTr("Show password")
+ Layout.preferredWidth: col1Width
+ }
Switch {
checked: false
id: showPassword
+ Layout.preferredWidth: col4Width
onCheckedChanged: {
password.echoMode = checked ? TextInput.Normal : TextInput.Password
}
}
- Kirigami.Label {
- text: qsTr("Show password")
- }
}
Kirigami.Label {