summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qnumeric.cpp
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2022-03-23 22:59:38 +0100
committerTopi Reinio <topi.reinio@qt.io>2022-03-25 16:19:20 +0100
commit62a26df2ffad245ac36707e2fd018041fd61f8f0 (patch)
tree8f3bd9ef06dac38b19640d04e6fd33cf7441acef /src/corelib/global/qnumeric.cpp
parentb34ed061e3ae12355dde91af7a76094ed85c79f3 (diff)
Doc: Add \relates command for documented global functions/macros
Global functions need an associated header file/class/namespace to make the documentation visible. Remove QDoc comment tag (/*!) for an internal function. Pick-to: 6.3 Task-number: QTBUG-99578 Change-Id: Id390d433d7e081fc90fa57a02097b6c37fa13bee Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'src/corelib/global/qnumeric.cpp')
-rw-r--r--src/corelib/global/qnumeric.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/global/qnumeric.cpp b/src/corelib/global/qnumeric.cpp
index 63055a0b61c..92f28af610d 100644
--- a/src/corelib/global/qnumeric.cpp
+++ b/src/corelib/global/qnumeric.cpp
@@ -256,6 +256,7 @@ Q_CORE_EXPORT quint64 qFloatDistance(double a, double b)
/*!
\fn template<typename T> bool qAddOverflow(T v1, T v2, T *result)
+ \relates <QtGlobal>
\since 6.1
Adds two values \a v1 and \a v2, of a numeric type \c T and records the
@@ -287,6 +288,7 @@ Q_CORE_EXPORT quint64 qFloatDistance(double a, double b)
/*!
\fn template<typename T> bool qSubOverflow(T v1, T v2, T *result)
+ \relates <QtGlobal>
\since 6.1
Subtracts \a v2 from \a v1 and records the resulting value in \a result. If
@@ -318,6 +320,7 @@ Q_CORE_EXPORT quint64 qFloatDistance(double a, double b)
/*!
\fn template<typename T> bool qMulOverflow(T v1, T v2, T *result)
+ \relates <QtGlobal>
\since 6.1
Multiplies \a v1 and \a v2, and records the resulting value in \a result. If