Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
5c13d69f
Commit
5c13d69f
authored
Jan 16, 2021
by
Nicolas Fella
Browse files
[kcms/users] Fix password field alignment
parent
c24ee834
Changes
1
Hide whitespace changes
Inline
Side-by-side
kcms/users/package/contents/ui/ChangePassword.qml
View file @
5c13d69f
...
...
@@ -44,13 +44,16 @@ Kirigami.OverlaySheet {
ColumnLayout
{
id
:
mainColumn
spacing
:
Kirigami
.
Units
.
smallSpacing
Layout.preferredWidth
:
Kirigami
.
Units
.
gridUnit
*
15
// We don't use a FormLayout here because layouting breaks at small widths.
ColumnLayout
{
Layout.preferredWidth
:
Kirigami
.
Units
.
gridUnit
*
15
Layout.alignment
:
Qt
.
AlignHCenter
Kirigami.PasswordField
{
id
:
passwordField
Layout.fillWidth
:
true
placeholderText
:
i18n
(
"
Password
"
)
onAccepted
:
{
...
...
@@ -59,10 +62,12 @@ Kirigami.OverlaySheet {
}
}
Layout.alignment
:
Qt
.
AlignLeft
}
Kirigami.PasswordField
{
id
:
verifyField
Layout.fillWidth
:
true
placeholderText
:
i18n
(
"
Confirm password
"
)
onAccepted
:
{
...
...
@@ -70,14 +75,11 @@ Kirigami.OverlaySheet {
passButton
.
apply
()
}
}
Layout.alignment
:
Qt
.
AlignLeft
}
Kirigami.InlineMessage
{
id
:
passwordWarning
Layout.fillWidth
:
true
Layout.maximumWidth
:
verifyField
.
width
type
:
Kirigami
.
MessageType
.
Error
text
:
i18n
(
"
Passwords must match
"
)
visible
:
passwordField
.
text
!=
""
&&
verifyField
.
text
!=
""
&&
passwordField
.
text
!=
verifyField
.
text
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment