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/auto/qmltest | |
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/auto/qmltest')
-rw-r--r-- | tests/auto/qmltest/textinput/tst_textinput.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qmltest/textinput/tst_textinput.qml b/tests/auto/qmltest/textinput/tst_textinput.qml index b8f66a2e72..584b19af9d 100644 --- a/tests/auto/qmltest/textinput/tst_textinput.qml +++ b/tests/auto/qmltest/textinput/tst_textinput.qml @@ -48,7 +48,7 @@ ** ****************************************************************************/ -import QtQuick 2.0 +import QtQuick 2.14 import QtTest 1.1 Item { @@ -118,7 +118,7 @@ Item { text: "" height: 20 width: 50 - validator: RegExpValidator { id: rv; regExp: /[a-z]{3}/ } + validator: RegularExpressionValidator { id: rv; regularExpression: /[a-z]{3}/ } } @@ -316,7 +316,7 @@ Item { } function test_regexpvalidators(row) { - compare(txtregexpvalidator.validator.regExp, /[a-z]{3}/) + compare(txtregexpvalidator.validator.regularExpression, /[a-z]{3}/) txtregexpvalidator.text = row.testtext; compare(txtregexpvalidator.acceptableInput, row.acceptable) } |