Mobile Settings formatting

Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
This commit is contained in:
Rick Walsh 2017-07-20 19:55:58 +12:00 committed by Dirk Hohndel
parent 6655b37add
commit 8d2b59ff31
2 changed files with 96 additions and 74 deletions

View file

@ -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 {