mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile Settings formatting
Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
This commit is contained in:
parent
6655b37add
commit
8d2b59ff31
2 changed files with 96 additions and 74 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue