mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Move Validators to UM, so they can be used in UM components.
Update all TextFieldWithUnit to use our FloatValidator. This component now has proper styling when the input is invalid. The DoubleValidator was flagging numbers with a "." in them as an incorrect input (I assume this is because the region was set to europe on the OS where "," is common). The workaround is to use our FloatValidator which validates both "." and "," CURA-9793
This commit is contained in:
parent
0e5ad96207
commit
f601229390
7 changed files with 6 additions and 53 deletions
|
@ -81,7 +81,7 @@ RecommendedSettingSection
|
|||
width: parent.width
|
||||
settingName: "wall_thickness"
|
||||
updateAllExtruders: true
|
||||
validator: Cura.FloatValidator {}
|
||||
validator: UM.FloatValidator {}
|
||||
unitText: catalog.i18nc("@label", "mm")
|
||||
}
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ RecommendedSettingSection
|
|||
width: parent.width
|
||||
settingName: "top_bottom_thickness"
|
||||
updateAllExtruders: true
|
||||
validator: Cura.FloatValidator {}
|
||||
validator: UM.FloatValidator {}
|
||||
unitText: catalog.i18nc("@label", "mm")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue