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>
bb10
parent
e4fb59c0af
commit
2eb61feb9b
|
|
@ -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()).
|
||||
|
|
|
|||
Loading…
Reference in New Issue