summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2014-09-04 19:05:11 +0200
committerDavid Faure <david.faure@kdab.com>2014-09-05 01:28:32 +0200
commit2eb61feb9bb27799de836099b778f7431eb25848 (patch)
treed49180f98099809e18ea525447ca1ea0698ac041 /src/corelib/tools
parente4fb59c0afa17b3530102f3a32f2323bedd3faa6 (diff)
Doc: QRect::isEmpty's documentation didn't match the code.
The code says bool QRect::isValid() const { return x1 <= x2 && y1 <= y2; } so the documentation should say <= as well, rather than <. Change-Id: If52005879d2a758b5d1d64b552e6cd96341fae76 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/corelib/tools')
-rw-r--r--src/corelib/tools/qrect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qrect.cpp b/src/corelib/tools/qrect.cpp
index 04269e485b..57cc863696 100644
--- a/src/corelib/tools/qrect.cpp
+++ b/src/corelib/tools/qrect.cpp
@@ -284,7 +284,7 @@ QT_BEGIN_NAMESPACE
Returns \c true if the rectangle is valid, otherwise returns \c false.
- A valid rectangle has a left() < right() and top() <
+ A valid rectangle has a left() <= right() and top() <=
bottom(). Note that non-trivial operations like intersections are
not defined for invalid rectangles. A valid rectangle is not empty
(i.e., isValid() == !isEmpty()).