diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-03-17 16:36:08 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-03-18 16:02:36 +0100 |
commit | 7230005ef66f22a7ee3addff95b1e8d9060dc5a1 (patch) | |
tree | a08ff3fce798fc1fb88809083efb4070cbc4d091 /tests/testapplications/elements | |
parent | c5b48c735e1c26444e53c4ea7dc6df4c57b5e9b4 (diff) |
Remove QRegExpValidator usages
This also means the RegExpValidator QML type will be gone. Use
QRegularExpressionValidator instead.
[ChangeLog][QtQuick][RegExpValidator] The RegExpValidator QML type has
been removed. Use RegularExpressionValidator instead.
Change-Id: If25fc5a258a669dfd28e705271757caa252ce05c
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/testapplications/elements')
-rw-r--r-- | tests/testapplications/elements/content/RegExpValidatorElement.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testapplications/elements/content/RegExpValidatorElement.qml b/tests/testapplications/elements/content/RegExpValidatorElement.qml index 5cc77f8f3d..f4bada9f94 100644 --- a/tests/testapplications/elements/content/RegExpValidatorElement.qml +++ b/tests/testapplications/elements/content/RegExpValidatorElement.qml @@ -26,7 +26,7 @@ ** ****************************************************************************/ -import QtQuick 2.0 +import QtQuick 2.14 Item { id: regexpvalidatorelementtest @@ -34,7 +34,7 @@ Item { property string testtext: "" property variant regexp: /[a-z]{3}/ - RegExpValidator { id: regexpvalidatorelement; regExp: regexp } + RegularExpressionValidator { id: regexpvalidatorelement; regularExpression: regexp } Rectangle { id: regexpvalidatorelementbackground @@ -67,8 +67,8 @@ Item { State { name: "start"; when: statenum == 1 PropertyChanges { target: regexpvalidatorelementinput; text: "abc" } PropertyChanges { target: regexpvalidatorelementtest - testtext: "This is a TextInput element using an RegExpValidator for input masking. At present it should be indicating abc.\n"+ - "The regExp value will only match to a value that has three alpha characters\n"+ + testtext: "This is a TextInput element using an RegularExpressionValidator for input masking. At present it should be indicating abc.\n"+ + "The regularExpression value will only match to a value that has three alpha characters\n"+ "Next, let's attempt to enter text that does not match the regular expression: 123" } }, State { name: "notmatch"; when: statenum == 2 |