diff options
Diffstat (limited to 'src/corelib/tools/qline.cpp')
-rw-r--r-- | src/corelib/tools/qline.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/corelib/tools/qline.cpp b/src/corelib/tools/qline.cpp index a2a7839a0b..7e13d4db92 100644 --- a/src/corelib/tools/qline.cpp +++ b/src/corelib/tools/qline.cpp @@ -529,12 +529,13 @@ QDataStream &operator>>(QDataStream &stream, QLine &line) \fn void QLineF::setLength(qreal length) Sets the length of the line to the given \a length. QLineF will - move the end point - p2() - of the line to give the line its new length. + move the end point - p2() - of the line to give the line its new + length, unless length() was previously zero, in which case no + scaling is attempted. For lines with very short lengths + (represented by denormal floating-point values), results may be + imprecise. - A null line will not be rescaled. For non-null lines with very short lengths - (represented by denormal floating-point values), results may be imprecise. - - \sa length(), isNull(), unitVector() + \sa length(), unitVector() */ /*! |