aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickvalidator.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-03-17 16:36:08 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-03-18 16:02:36 +0100
commit7230005ef66f22a7ee3addff95b1e8d9060dc5a1 (patch)
treea08ff3fce798fc1fb88809083efb4070cbc4d091 /src/quick/util/qquickvalidator.cpp
parentc5b48c735e1c26444e53c4ea7dc6df4c57b5e9b4 (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 'src/quick/util/qquickvalidator.cpp')
-rw-r--r--src/quick/util/qquickvalidator.cpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/quick/util/qquickvalidator.cpp b/src/quick/util/qquickvalidator.cpp
index 4709b3dda3..c309460263 100644
--- a/src/quick/util/qquickvalidator.cpp
+++ b/src/quick/util/qquickvalidator.cpp
@@ -201,49 +201,6 @@ void QQuickDoubleValidator::resetLocaleName()
*/
/*!
- \qmltype RegExpValidator
- \instantiates QRegExpValidator
- \inqmlmodule QtQuick
- \ingroup qtquick-text-utility
- \brief Provides a string validator.
- \deprecated
-
- The RegExpValidator type provides a validator, which counts as valid any string which
- matches a specified regular expression.
-
- RegExpValidator is deprecated since it is based on the deprecated \l {QRegExp}. Use
- \l RegularExpressionValidator instead.
-*/
-/*!
- \qmlproperty regExp QtQuick::RegExpValidator::regExp
-
- This property holds the regular expression used for validation.
-
- Note that this property should be a regular expression in JS syntax, e.g /a/ for the regular expression
- matching "a".
-
- By default, this property contains a regular expression with the pattern .* that matches any string.
-
- Below you can find an example of a \l TextInput object with a RegExpValidator specified:
-
- \snippet qml/regexp.qml 0
-
- Some more examples of regular expressions:
-
- \list
- \li A list of numbers with one to three positions separated by a comma:
- \badcode
- /\d{1,3}(?:,\d{1,3})+$/
- \endcode
-
- \li An amount consisting of up to 3 numbers before the decimal point, and
- 1 to 2 after the decimal point:
- \badcode
- /(\d{1,3})([.,]\d{1,2})?$/
- \endcode
- \endlist
-*/
-/*!
\qmltype RegularExpressionValidator
\instantiates QRegularExpressionValidator
\inqmlmodule QtQuick