[usersq] Call setters for checkboxes
This commit is contained in:
parent
b17e01edff
commit
8348bd2bb7
@ -125,7 +125,7 @@ Kirigami.ScrollablePage {
|
|||||||
width: parent.width
|
width: parent.width
|
||||||
placeholderText: qsTr("Computer Name")
|
placeholderText: qsTr("Computer Name")
|
||||||
text: config.hostName
|
text: config.hostName
|
||||||
onTextEdited: config.setHostName(text)
|
onTextChanged: config.setHostName(text)
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
|
||||||
@ -220,6 +220,7 @@ Kirigami.ScrollablePage {
|
|||||||
visible: config.permitWeakPasswords
|
visible: config.permitWeakPasswords
|
||||||
text: qsTr("Validate passwords quality")
|
text: qsTr("Validate passwords quality")
|
||||||
checked: config.requireStrongPasswords
|
checked: config.requireStrongPasswords
|
||||||
|
onCheckedChanged: config.setRequireStrongPasswords(checked)
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
@ -234,6 +235,7 @@ Kirigami.ScrollablePage {
|
|||||||
CheckBox {
|
CheckBox {
|
||||||
text: qsTr("Log in automatically without asking for the password")
|
text: qsTr("Log in automatically without asking for the password")
|
||||||
checked: config.doAutoLogin
|
checked: config.doAutoLogin
|
||||||
|
onCheckedChanged: config.setAutoLogin(checked)
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
@ -241,6 +243,7 @@ Kirigami.ScrollablePage {
|
|||||||
visible: config.writeRootPassword
|
visible: config.writeRootPassword
|
||||||
text: qsTr("Reuse user password as root password")
|
text: qsTr("Reuse user password as root password")
|
||||||
checked: config.reuseUserPasswordForRoot
|
checked: config.reuseUserPasswordForRoot
|
||||||
|
onCheckedChanged: config.setReuseUserPasswordForRoot(checked)
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
@ -273,10 +276,12 @@ Kirigami.ScrollablePage {
|
|||||||
id: _rootPasswordField
|
id: _rootPasswordField
|
||||||
width: parent.width / 2 -10
|
width: parent.width / 2 -10
|
||||||
placeholderText: qsTr("Root Password")
|
placeholderText: qsTr("Root Password")
|
||||||
|
text: config.rootPassword
|
||||||
|
onTextChanged: config.setRootPassword(text)
|
||||||
|
|
||||||
echoMode: TextInput.Password
|
echoMode: TextInput.Password
|
||||||
passwordMaskDelay: 300
|
passwordMaskDelay: 300
|
||||||
inputMethodHints: Qt.ImhNoAutoUppercase
|
inputMethodHints: Qt.ImhNoAutoUppercase
|
||||||
text: config.rootPassword
|
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
|
||||||
@ -292,10 +297,12 @@ Kirigami.ScrollablePage {
|
|||||||
id: _verificationRootPasswordField
|
id: _verificationRootPasswordField
|
||||||
width: parent.width / 2 -10
|
width: parent.width / 2 -10
|
||||||
placeholderText: qsTr("Repeat Root Password")
|
placeholderText: qsTr("Repeat Root Password")
|
||||||
|
text: config.rootPasswordSecondary
|
||||||
|
onTextChanged: config.setRootPasswordSecondary(text)
|
||||||
|
|
||||||
echoMode: TextInput.Password
|
echoMode: TextInput.Password
|
||||||
passwordMaskDelay: 300
|
passwordMaskDelay: 300
|
||||||
inputMethodHints: Qt.ImhNoAutoUppercase
|
inputMethodHints: Qt.ImhNoAutoUppercase
|
||||||
text: config.rootPasswordSecondary
|
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user