use C locale for DoubleValidator

Closes https://github.com/nomic-ai/gpt4all-chat/issues/126
This commit is contained in:
Aaron Miller 2023-04-28 08:36:24 -07:00 committed by AT
parent af83056a4f
commit ad2cb91d5a

View File

@ -193,7 +193,9 @@ The prompt below is a question to answer, a task to complete, or a conversation
ToolTip.visible: hovered
Layout.row: 0
Layout.column: 1
validator: DoubleValidator {}
validator: DoubleValidator {
locale: "C"
}
onEditingFinished: {
var val = parseFloat(text)
if (!isNaN(val)) {
@ -228,7 +230,9 @@ The prompt below is a question to answer, a task to complete, or a conversation
ToolTip.visible: hovered
Layout.row: 1
Layout.column: 1
validator: DoubleValidator {}
validator: DoubleValidator {
locale: "C"
}
onEditingFinished: {
var val = parseFloat(text)
if (!isNaN(val)) {
@ -375,7 +379,9 @@ The prompt below is a question to answer, a task to complete, or a conversation
ToolTip.visible: hovered
Layout.row: 5
Layout.column: 1
validator: DoubleValidator {}
validator: DoubleValidator {
locale: "C"
}
onEditingFinished: {
var val = parseFloat(text)
if (!isNaN(val)) {