doc: Added \relates command to some function qdoc comments
authorMartin Smith <martin.smith@nokia.com>
Fri, 17 Aug 2012 09:31:23 +0000 (11:31 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 21 Aug 2012 09:05:20 +0000 (11:05 +0200)
When a documented function is global, it must be related
to a namespace or class, or its documentation won't be
included anywhere.

When a documented function is a class member, the function
signature in the \fn command must include the class name
qualifier, e.g. QImage::isValid(), not just isValid()

Change-Id: I53e2230fa9468f94d51aec8cc76781d7ab755a13
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
src/corelib/global/qnumeric.cpp
src/corelib/kernel/qmath.qdoc
src/corelib/tools/qdatetime.cpp
src/gui/image/qimage.cpp

index 1e77231..4c9af44 100644 (file)
@@ -46,46 +46,55 @@ QT_BEGIN_NAMESPACE
 
 /*!
     Returns true if the double \a {d} is equivalent to infinity.
+    \relates <QtGlobal>
 */
 Q_CORE_EXPORT bool qIsInf(double d) { return qt_is_inf(d); }
 
 /*!
     Returns true if the double \a {d} is not a number (NaN).
+    \relates <QtGlobal>
 */
 Q_CORE_EXPORT bool qIsNaN(double d) { return qt_is_nan(d); }
 
 /*!
     Returns true if the double \a {d} is a finite number.
+    \relates <QtGlobal>
 */
 Q_CORE_EXPORT bool qIsFinite(double d) { return qt_is_finite(d); }
 
 /*!
     Returns true if the float \a {f} is equivalent to infinity.
+    \relates <QtGlobal>
 */
 Q_CORE_EXPORT bool qIsInf(float f) { return qt_is_inf(f); }
 
 /*!
     Returns true if the float \a {f} is not a number (NaN).
+    \relates <QtGlobal>
 */
 Q_CORE_EXPORT bool qIsNaN(float f) { return qt_is_nan(f); }
 
 /*!
     Returns true if the float \a {f} is a finite number.
+    \relates <QtGlobal>
 */
 Q_CORE_EXPORT bool qIsFinite(float f) { return qt_is_finite(f); }
 
 /*!
     Returns the bit pattern of a signalling NaN as a double.
+    \relates <QtGlobal>
 */
 Q_CORE_EXPORT double qSNaN() { return qt_snan(); }
 
 /*!
     Returns the bit pattern of a quiet NaN as a double.
+    \relates <QtGlobal>
 */
 Q_CORE_EXPORT double qQNaN() { return qt_qnan(); }
 
 /*!
     Returns the bit pattern for an infinite number as a double.
+    \relates <QtGlobal>
 */
 Q_CORE_EXPORT double qInf() { return qt_inf(); }
 
index fcc5176..cba19a8 100644 (file)
@@ -58,6 +58,8 @@
 /*!
     \fn qreal qFabs(qreal v)
     Returns the absolute value of \a v as a qreal.
+
+    \relates <QtCore/qmath.h>
 */
 
 /*!
index 1621176..293838e 100644 (file)
@@ -275,7 +275,7 @@ QDate::QDate(int y, int m, int d)
 
 
 /*!
-    \fn bool isValid() const
+    \fn bool QDate::isValid() const
 
     Returns true if this date is valid; otherwise returns false.
 
index 71ec636..ae760a4 100644 (file)
@@ -594,6 +594,7 @@ bool QImageData::checkForAlphaPixels() const
 
 /*!
     \typedef QImageCleanupFunction
+    \relates QImage
     \since 5.0
 
     A function with the following signature that can be used to