From 4038c07e5f39e8d6c3b05682078aa1678df53c31 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Mon, 1 Feb 2016 13:47:13 +0100 Subject: qdoc: Documentation for qFuzzyIsNull() is added The two versions of this function are now documented on the global variables page. Change-Id: Iee95e251d616f6c8b1b42458d23cbf64a70a5315 Task-number: QTBUG-50654 Reviewed-by: Thiago Macieira --- src/corelib/global/qglobal.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/corelib/global/qglobal.cpp') diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp index c244f7cd61..55b3fde55e 100644 --- a/src/corelib/global/qglobal.cpp +++ b/src/corelib/global/qglobal.cpp @@ -4246,6 +4246,24 @@ bool QInternal::activateCallbacks(Callback cb, void **parameters) exactness is stronger the smaller the numbers are. */ +/*! + \fn bool qFuzzyIsNull(double d) + \relates + \since 4.4 + \threadsafe + + Returns true if the absolute value of \a d is within 0.000000000001 of 0.0. +*/ + +/*! + \fn bool qFuzzyIsNull(float f) + \relates + \since 4.4 + \threadsafe + + Returns true if the absolute value of \a f is within 0.00001f of 0.0. +*/ + /*! \macro QT_REQUIRE_VERSION(int argc, char **argv, const char *version) \relates -- cgit v1.2.3