aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2022-03-08 14:22:33 +0800
committerMitch Curtis <mitch.curtis@qt.io>2022-03-09 15:49:40 +0800
commit48b24f762f7f271d37ca0fb7f44efb6f6634d8ae (patch)
treea509d694ada347eb8a888d16acd77b57410534d2
parent44b95b3fb26013ff5dab75d4f894ca4f11298e3d (diff)
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>
-rw-r--r--src/quick/util/qquickvalidator.cpp6
-rw-r--r--src/quicktemplates2/qquickspinbox.cpp3
2 files changed, 8 insertions, 1 deletions
diff --git a/src/quick/util/qquickvalidator.cpp b/src/quick/util/qquickvalidator.cpp
index c309460263..7e93d87555 100644
--- a/src/quick/util/qquickvalidator.cpp
+++ b/src/quick/util/qquickvalidator.cpp
@@ -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
diff --git a/src/quicktemplates2/qquickspinbox.cpp b/src/quicktemplates2/qquickspinbox.cpp
index dbf5738b77..d1990a4227 100644
--- a/src/quicktemplates2/qquickspinbox.cpp
+++ b/src/quicktemplates2/qquickspinbox.cpp
@@ -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
{