Changing RegExpValidator to RegularExpressionValidator.
This commit is contained in:
parent
98f26d4919
commit
78ffc8c645
2 changed files with 6 additions and 6 deletions
|
@ -140,8 +140,8 @@ Column {
|
|||
visible: control.dictionaryMode
|
||||
height: parent.height
|
||||
width: visible ? 50 : 0
|
||||
validator: RegExpValidator {
|
||||
regExp: control.keyRegexp
|
||||
validator: RegularExpressionValidator {
|
||||
regularExpression: control.keyRegexp
|
||||
}
|
||||
verticalAlignment: TextInput.AlignVCenter
|
||||
horizontalAlignment: TextInput.AlignHCenter
|
||||
|
@ -180,8 +180,8 @@ Column {
|
|||
id: valueInput
|
||||
height: parent.height
|
||||
width: parent.width - x - deleteButton.width - 5
|
||||
validator: RegExpValidator {
|
||||
regExp: control.valueRegexp
|
||||
validator: RegularExpressionValidator {
|
||||
regularExpression: control.valueRegexp
|
||||
}
|
||||
verticalAlignment: TextInput.AlignVCenter
|
||||
horizontalAlignment: TextInput.AlignHCenter
|
||||
|
|
|
@ -113,8 +113,8 @@ Item {
|
|||
verticalAlignment: TextInput.AlignVCenter
|
||||
horizontalAlignment: control.label == "" ? TextInput.AlignLeft : TextInput.AlignHCenter
|
||||
color: sysPalette.windowText
|
||||
validator: RegExpValidator {
|
||||
regExp: control.isInt ? /-?[0-9]+/ : control.isDouble ? /-?[0-9]+(\.[0-9]+)?/ : /.+/
|
||||
validator: RegularExpressionValidator {
|
||||
regularExpression: control.isInt ? /-?[0-9]+/ : control.isDouble ? /-?[0-9]+(\.[0-9]+)?/ : /.+/
|
||||
}
|
||||
focus: true
|
||||
text: control.defValue
|
||||
|
|
Loading…
Reference in a new issue