Commit 70071507 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/modules/Common/Form/Fields/HexField): supports `a-f`

parent cb711fb0
...@@ -37,15 +37,12 @@ Item { ...@@ -37,15 +37,12 @@ Item {
id: textField id: textField
validator: RegExpValidator { validator: RegExpValidator {
regExp: /[0-9A-F]*/ regExp: /[0-9A-Fa-f]*/
} }
onEditingFinished: { onEditingFinished: {
if (!text.length) { text = _computeText('0x' + text)
text = '0' wrapper.editingFinished(parseInt(text, 16))
}
wrapper.editingFinished(parseInt(textField.text, 16))
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment