summaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickvalidator.cpp
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2017-06-16 10:12:59 +0200
committerTopi Reiniƶ <topi.reinio@qt.io>2017-06-16 13:05:11 +0000
commit3fc212f7cad26e310e3f560a9416ad4dfbcaca00 (patch)
tree70ed81994f930852caa6d45f5f114a9a52050094 /src/quick/util/qquickvalidator.cpp
parentb66bc399aed8b307a27781c97585a09888d8692f (diff)
Doc: Enclose regular expressions with \badcode
Without them, qdoc tries to parse the backslashes as qdoc commands: src/quick/util/qquickvalidator.cpp:231: warning: Unknown command '\d' Change-Id: I36322586c477822f7efbae8b80adaee177c7ca44 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Diffstat (limited to 'src/quick/util/qquickvalidator.cpp')
-rw-r--r--src/quick/util/qquickvalidator.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/quick/util/qquickvalidator.cpp b/src/quick/util/qquickvalidator.cpp
index 93f414fe80..c3ce149dcf 100644
--- a/src/quick/util/qquickvalidator.cpp
+++ b/src/quick/util/qquickvalidator.cpp
@@ -228,9 +228,15 @@ void QQuickDoubleValidator::resetLocaleName()
\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: \li /(\d{1,3})([.,]\d{1,2})?$/
+ 1 to 2 after the decimal point:
+ \badcode
+ /(\d{1,3})([.,]\d{1,2})?$/
+ \endcode
\endlist
*/