Fixing qml connection to save business with a new contact - some
database modifications
This commit is contained in:
@@ -125,7 +125,14 @@ GridLayout
|
||||
placeholderText: qsTr("TT.MM.JJJJ")
|
||||
validator: RegularExpressionValidator
|
||||
{
|
||||
regularExpression: /((^|)([0-2]{1}[0-9]{1}|3[0-1]))\.((^|)([0-1]{1,2}|12))\.([0-9]{4})/
|
||||
regularExpression: /((^|)([0-2]{1}[0-9]{1}|3[0-1]))\.((^|)(0[1-9]{1}|1[0-2]{1}))\.((^|)(196[0-9]{1}|19[7-9]{1}[0-9]{1}|20[0-9]{2}))/
|
||||
}
|
||||
|
||||
onTextChanged:
|
||||
{
|
||||
var len = birthday.length
|
||||
var bd = birthday.text
|
||||
if (len == 2 || len == 5) birthday.text = bd + "."
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user