You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
556 B

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import Eden.Items
import Eden.Config
import Eden.Constants
BaseField {
contentItem: TextField {
enabled: enable
Layout.fillWidth: true
Layout.rightMargin: 10
Layout.maximumHeight: 30
validator: RegularExpressionValidator {
regularExpression: /[0-9a-fA-F]{0,8}/
}
font.pixelSize: 14
text: Number(value).toString(16)
// suffix: setting.suffix
onTextEdited: value = Number("0x" + text)
}
}