diff options
author | Andreas Eliasson <andreas.eliasson@qt.io> | 2022-06-08 10:10:14 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-06-15 19:53:25 +0000 |
commit | 5b52775f4aaa0903b45d17ea8a2178410fa2f118 (patch) | |
tree | 69807d31241009447b669c0dfbd2795688d651b0 | |
parent | 9ac74fdf441b5d07199ab7d2f31bf1c9f363856e (diff) |
Doc: Add text validators group
Also, remove the redundant page that was previously listed.
Fixes: QTBUG-101538
Change-Id: Ia1250533805b6f4e3068159fbb6f8795a24ccc51
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
(cherry picked from commit d8036a80e25b459cdd8f6e24d569295a2dd28ab1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/quick/doc/src/concepts/input/textinput.qdoc | 12 | ||||
-rw-r--r-- | src/quick/util/qquickvalidator.cpp | 3 |
2 files changed, 4 insertions, 11 deletions
diff --git a/src/quick/doc/src/concepts/input/textinput.qdoc b/src/quick/doc/src/concepts/input/textinput.qdoc index f03158fb03..a1491236d0 100644 --- a/src/quick/doc/src/concepts/input/textinput.qdoc +++ b/src/quick/doc/src/concepts/input/textinput.qdoc @@ -21,7 +21,7 @@ respective documentation. The \e validator types enforce the type and format of \l TextInput objects. -\annotatedlist qtquick-text-validator +\annotatedlist qtquick-text-validators \snippet qml/texthandling.qml int validator The validator types bind to \c {TextInput}'s \c validator property. @@ -34,13 +34,3 @@ Note that QML parses JavaScript regular expressions, while Qt's \l {QRegularExpression} class' regular expressions are based on Perl regular expressions. */ - -/*! -\page qtquick-text-validator.html -\ingroup qtquick-text-validator -\title Qt Quick Text Validators -\brief Types that validate text input - -The \l {Qt Quick Text Input Handling and Validators} page has information about -validating user text input. -*/ diff --git a/src/quick/util/qquickvalidator.cpp b/src/quick/util/qquickvalidator.cpp index bf19462bf0..76cba4c872 100644 --- a/src/quick/util/qquickvalidator.cpp +++ b/src/quick/util/qquickvalidator.cpp @@ -12,6 +12,7 @@ QT_BEGIN_NAMESPACE \instantiates QIntValidator \inqmlmodule QtQuick \ingroup qtquick-text-utility + \ingroup qtquick-text-validators \brief Defines a validator for integer values. The IntValidator type provides a validator for integer values. @@ -77,6 +78,7 @@ void QQuickIntValidator::resetLocaleName() \instantiates QDoubleValidator \inqmlmodule QtQuick \ingroup qtquick-text-utility + \ingroup qtquick-text-validators \brief Defines a validator for non-integer numbers. The DoubleValidator type provides a validator for non-integer numbers. @@ -173,6 +175,7 @@ void QQuickDoubleValidator::resetLocaleName() \instantiates QRegularExpressionValidator \inqmlmodule QtQuick \ingroup qtquick-text-utility + \ingroup qtquick-text-validators \brief Provides a string validator. \since 5.14 |