diff options
Diffstat (limited to 'mobile-widgets/qml/CloudCredentials.qml')
-rw-r--r-- | mobile-widgets/qml/CloudCredentials.qml | 12 |
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 { |