mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-02 09:40:42 +00:00
use C locale for DoubleValidator
Closes https://github.com/nomic-ai/gpt4all-chat/issues/126
This commit is contained in:
parent
af83056a4f
commit
ad2cb91d5a
@ -193,7 +193,9 @@ The prompt below is a question to answer, a task to complete, or a conversation
|
|||||||
ToolTip.visible: hovered
|
ToolTip.visible: hovered
|
||||||
Layout.row: 0
|
Layout.row: 0
|
||||||
Layout.column: 1
|
Layout.column: 1
|
||||||
validator: DoubleValidator {}
|
validator: DoubleValidator {
|
||||||
|
locale: "C"
|
||||||
|
}
|
||||||
onEditingFinished: {
|
onEditingFinished: {
|
||||||
var val = parseFloat(text)
|
var val = parseFloat(text)
|
||||||
if (!isNaN(val)) {
|
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
|
ToolTip.visible: hovered
|
||||||
Layout.row: 1
|
Layout.row: 1
|
||||||
Layout.column: 1
|
Layout.column: 1
|
||||||
validator: DoubleValidator {}
|
validator: DoubleValidator {
|
||||||
|
locale: "C"
|
||||||
|
}
|
||||||
onEditingFinished: {
|
onEditingFinished: {
|
||||||
var val = parseFloat(text)
|
var val = parseFloat(text)
|
||||||
if (!isNaN(val)) {
|
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
|
ToolTip.visible: hovered
|
||||||
Layout.row: 5
|
Layout.row: 5
|
||||||
Layout.column: 1
|
Layout.column: 1
|
||||||
validator: DoubleValidator {}
|
validator: DoubleValidator {
|
||||||
|
locale: "C"
|
||||||
|
}
|
||||||
onEditingFinished: {
|
onEditingFinished: {
|
||||||
var val = parseFloat(text)
|
var val = parseFloat(text)
|
||||||
if (!isNaN(val)) {
|
if (!isNaN(val)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user