diff options
author | David Boddie <david.boddie@nokia.com> | 2010-11-03 15:39:25 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2010-11-03 15:39:25 (GMT) |
commit | 0b9aa12659d5ea6b15fe72f963cc98db9af585fc (patch) | |
tree | 01ad0331329755c17a97c4a861a899268eb3c647 /src/corelib/tools/qsize.cpp | |
parent | d5a44f3489b48027db3f0955190446e0324d6bf5 (diff) | |
download | Qt-0b9aa12659d5ea6b15fe72f963cc98db9af585fc.zip Qt-0b9aa12659d5ea6b15fe72f963cc98db9af585fc.tar.gz Qt-0b9aa12659d5ea6b15fe72f963cc98db9af585fc.tar.bz2 |
Document the difference between +0.0 and -0.0 for QPointF and QSizeF.
Reviewed-by: Robert Griebl
Diffstat (limited to 'src/corelib/tools/qsize.cpp')
-rw-r--r-- | src/corelib/tools/qsize.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/corelib/tools/qsize.cpp b/src/corelib/tools/qsize.cpp index 20ac344..12287ab 100644 --- a/src/corelib/tools/qsize.cpp +++ b/src/corelib/tools/qsize.cpp @@ -492,9 +492,13 @@ QDebug operator<<(QDebug dbg, const QSize &s) { /*! \fn bool QSizeF::isNull() const - Returns true if both the width and height is 0; otherwise returns + Returns 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. + \sa isValid(), isEmpty() */ |