TextField.onEditingFinished() is not available in Qt versions lower than 5.9. Replace with onEditingFinished()

This commit is contained in:
dsc 2018-12-09 17:43:55 +01:00
parent 71a1ff6677
commit e650818016
No known key found for this signature in database
GPG key ID: 7BBC83D7A8810AAB

View file

@ -381,7 +381,7 @@ ColumnLayout {
color: "#4A4949" color: "#4A4949"
text: persistentSettings.kdfRounds text: persistentSettings.kdfRounds
validator: IntValidator { bottom: 1 } validator: IntValidator { bottom: 1 }
onTextEdited: { onEditingFinished: {
kdfRoundsText.text = persistentSettings.kdfRounds = parseInt(kdfRoundsText.text) >= 1 ? parseInt(kdfRoundsText.text) : 1; kdfRoundsText.text = persistentSettings.kdfRounds = parseInt(kdfRoundsText.text) >= 1 ? parseInt(kdfRoundsText.text) : 1;
} }
} }