mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
feat(ui/modules/Common/Form/Fields/HexField): supports a-f
This commit is contained in:
parent
cb711fb086
commit
7007150706
1 changed files with 3 additions and 6 deletions
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue