diff options
authorDavid Boddie <>2011-06-30 20:48:32 +0200
committerQt by Nokia <>2011-09-26 05:56:22 +0200
commit94046ab192355990c2ee8e78eafe32c2081a8fa6 (patch)
parent6c588c52dacd5000f80a94b84b9cc979410b1427 (diff)
Doc: Clarified the range of return values from QLineF::angle().
Task-number: QTBUG-20197 (cherry picked from commit 86608d537eabc3cf7e1d1ddd1d0a2f90ccc2de2a) (cherry picked from commit 8a6dc154ef1fa71e85f02d011d6cbeb63e2ca3bb) Change-Id: I40cfba4ee45f61428b00d4044640f600c462d564 Reviewed-on: Reviewed-by: Qt Sanity Bot <> Reviewed-by: Toby Tomkins <> Reviewed-by: Peter Yard <>
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/tools/qline.cpp b/src/corelib/tools/qline.cpp
index af3b7d55ef..0f67652fb5 100644
--- a/src/corelib/tools/qline.cpp
+++ b/src/corelib/tools/qline.cpp
@@ -564,8 +564,9 @@ qreal QLineF::length() const
Returns the angle of the line in degrees.
- Positive values for the angles mean counter-clockwise while negative values
- mean the clockwise direction. Zero degrees is at the 3 o'clock position.
+ The return value will be in the range of values from 0.0 up to but not
+ including 360.0. The angles are measured counter-clockwise from a point
+ on the x-axis to the right of the origin (x > 0).
\sa setAngle()