From 2eb61feb9bb27799de836099b778f7431eb25848 Mon Sep 17 00:00:00 2001 From: David Faure Date: Thu, 4 Sep 2014 19:05:11 +0200 Subject: [PATCH] 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 --- src/corelib/tools/qrect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()).