Doc: make validator documentation more discoverable

Make it easier for users to discover the other types of
validators by linking to various pages.

Change-Id: Ifb15b9629ec81bdc7d3e4da4811f2b591a611d23
Fixes: QTBUG-101402
Pick-to: 6.2 6.3
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
This commit is contained in:
Mitch Curtis 2022-03-08 14:22:33 +08:00
parent 44b95b3fb2
commit 48b24f762f
2 changed files with 8 additions and 1 deletions

View File

@ -56,6 +56,8 @@ QT_BEGIN_NAMESPACE
interpret the number and will accept locale specific digits, group separators, and positive
and negative signs. In addition, IntValidator is always guaranteed to accept a number
formatted according to the "C" locale.
\sa DoubleValidator, RegularExpressionValidator, {Validating Input Text}
*/
QQuickIntValidator::QQuickIntValidator(QObject *parent)
@ -131,6 +133,8 @@ void QQuickIntValidator::resetLocaleName()
it is also rejected. If \l notation is DoubleValidator.ScientificNotation,
and the input is not in the valid range, it is accecpted but invalid. The
value may yet become valid by changing the exponent.
\sa IntValidator, RegularExpressionValidator, {Validating Input Text}
*/
QQuickDoubleValidator::QQuickDoubleValidator(QObject *parent)
@ -210,6 +214,8 @@ void QQuickDoubleValidator::resetLocaleName()
The RegularExpressionValidator type provides a validator, that counts as valid any string which
matches a specified regular expression.
\sa IntValidator, DoubleValidator, {Validating Input Text}
*/
/*!
\qmlproperty regularExpression QtQuick::RegularExpressionValidator::regularExpression

View File

@ -595,7 +595,8 @@ void QQuickSpinBox::setEditable(bool editable)
}
\endcode
\sa editable, textFromValue, valueFromText, {Control::locale}{locale}
\sa editable, textFromValue, valueFromText, {Control::locale}{locale},
{Validating Input Text}
*/
QValidator *QQuickSpinBox::validator() const
{