Commit 84e38c31 authored by Karel Slaný's avatar Karel Slaný
Browse files

Set text fields to have same width in change password page.

parent f71dc853
......@@ -147,45 +147,54 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter
color: datovkaPalette.mid
width: parent.width
text: qsTr("Enter current password and twice a new password.")
text: qsTr("Enter the current password and a new password.")
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.Wrap
}
TextField {
id: oldPwd
Column {
anchors.horizontalCenter: parent.horizontalCenter
height: inputItemHeight
font.pointSize: defaultTextFont.font.pointSize
echoMode: TextInput.Password
passwordMaskDelay: 500 // milliseconds
inputMethodHints: Qt.ImhNone
placeholderText: qsTr("Current password")
horizontalAlignment: TextInput.AlignHCenter
text: ""
}
TextField {
id: newPwd
anchors.horizontalCenter: parent.horizontalCenter
height: inputItemHeight
font.pointSize: defaultTextFont.font.pointSize
echoMode: TextInput.Password
passwordMaskDelay: 500 // milliseconds
inputMethodHints: Qt.ImhNone
placeholderText: qsTr("New password")
horizontalAlignment: TextInput.AlignHCenter
text: ""
}
TextField {
id: newPwdAgain
anchors.horizontalCenter: parent.horizontalCenter
height: inputItemHeight
font.pointSize: defaultTextFont.font.pointSize
echoMode: TextInput.Password
passwordMaskDelay: 500 // milliseconds
inputMethodHints: Qt.ImhNone
placeholderText: qsTr("Confirm new password")
horizontalAlignment: TextInput.AlignHCenter
text: ""
spacing: formItemVerticalSpacing
TextField {
id: oldPwd
// Fit widest element.
anchors.left: parent.left
anchors.right: parent.right
height: inputItemHeight
font.pointSize: defaultTextFont.font.pointSize
echoMode: TextInput.Password
passwordMaskDelay: 500 // milliseconds
inputMethodHints: Qt.ImhNone
placeholderText: qsTr("current password")
horizontalAlignment: TextInput.AlignHCenter
text: ""
}
TextField {
id: newPwd
// Fit widest element.
anchors.left: parent.left
anchors.right: parent.right
height: inputItemHeight
font.pointSize: defaultTextFont.font.pointSize
echoMode: TextInput.Password
passwordMaskDelay: 500 // milliseconds
inputMethodHints: Qt.ImhNone
placeholderText: qsTr("new password")
horizontalAlignment: TextInput.AlignHCenter
text: ""
}
TextField {
id: newPwdAgain
// Widest element.
anchors.horizontalCenter: parent.horizontalCenter
height: inputItemHeight
font.pointSize: defaultTextFont.font.pointSize
echoMode: TextInput.Password
passwordMaskDelay: 500 // milliseconds
inputMethodHints: Qt.ImhNone
placeholderText: qsTr("confirm the new password")
horizontalAlignment: TextInput.AlignHCenter
text: ""
}
}
Text {
id: errLineText
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment