aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2022-03-08 14:22:33 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-03-09 15:09:36 +0000
commit108eb261f8fdc639069d2388650a2786a5a775a5 (patch)
tree4e2060e18aa8bf490cc3625aec5a7f62bd375299
parentfba82d9244bcd583f1b669f57808e54e2dac2314 (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 Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> (cherry picked from commit 48b24f762f7f271d37ca0fb7f44efb6f6634d8ae) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-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
{