From b71535a9236a33371da36d89d38872d3ae91fbf0 Mon Sep 17 00:00:00 2001
From: Topi Reinio <topi.reinio@digia.com>
Date: Fri, 17 Apr 2015 14:32:02 +0200
Subject: [PATCH] Doc: Bring QSizeF/QPointF::isNull() documentation up to date

Since Qt 5.0 (commit 09dd19df) sign is ignored when testing
whether a QPointF or QSizeF is null.

This updates the documentation accordingly.

Change-Id: I3de1c748f3caa63b8bd8990006de5ba572eac83e
Task-number: QTBUG-45669
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
---
 src/corelib/tools/qpoint.cpp | 8 ++------
 src/corelib/tools/qsize.cpp  | 8 ++------
 2 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/src/corelib/tools/qpoint.cpp b/src/corelib/tools/qpoint.cpp
index dc2a2d97399..94a245375bb 100644
--- a/src/corelib/tools/qpoint.cpp
+++ b/src/corelib/tools/qpoint.cpp
@@ -528,12 +528,8 @@ QDebug operator<<(QDebug dbg, const QPointF &p)
 /*!
     \fn bool QPointF::isNull() const
 
-    Returns \c true if both the x and y coordinates are set to +0.0;
-    otherwise returns \c false.
-
-    \note Since this function treats +0.0 and -0.0 differently, points
-    with zero-valued coordinates where either or both values have a
-    negative sign are not defined to be null points.
+    Returns \c true if both the x and y coordinates are set to 0.0 (ignoring
+    the sign); otherwise returns \c false.
 */
 
 
diff --git a/src/corelib/tools/qsize.cpp b/src/corelib/tools/qsize.cpp
index 19227432f25..24a29f02133 100644
--- a/src/corelib/tools/qsize.cpp
+++ b/src/corelib/tools/qsize.cpp
@@ -517,12 +517,8 @@ QDebug operator<<(QDebug dbg, const QSize &s)
 /*!
     \fn bool QSizeF::isNull() const
 
-    Returns \c true if both the width and height are +0.0; otherwise returns
-    false.
-
-    \note Since this function treats +0.0 and -0.0 differently, sizes with
-    zero width and height where either or both values have a negative
-    sign are not defined to be null sizes.
+    Returns \c true if both the width and height are 0.0 (ignoring the sign);
+    otherwise returns \c false.
 
     \sa isValid(), isEmpty()
 */
-- 
GitLab