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

This commit is contained in:
Ronan Abhamon 2017-02-28 17:04:28 +01:00
parent cb711fb086
commit 7007150706

View file

@ -37,15 +37,12 @@ Item {
id: textField
validator: RegExpValidator {
regExp: /[0-9A-F]*/
regExp: /[0-9A-Fa-f]*/
}
onEditingFinished: {
if (!text.length) {
text = '0'
}
wrapper.editingFinished(parseInt(textField.text, 16))
text = _computeText('0x' + text)
wrapper.editingFinished(parseInt(text, 16))
}
}
}