summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qline.h
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2020-06-23 12:52:53 +0200
committerEirik Aavitsland <eirik.aavitsland@qt.io>2020-06-26 13:24:17 +0000
commit95b5a56071b30217735a2fc37ab25c347ca437b6 (patch)
treeadde8b8f14d55dffc157cf40d3d2922c043bc50b /src/corelib/tools/qline.h
parent1a63409579ff0e9ce524c09701c1ef8bd2d99f25 (diff)
Improve deprecation message for QLine::angle(QLine)
angleTo() always gives an answer measured ccw, so between 0 and 360 degrees. The deprecated angle() would give either cw or ccw, depending on which is smaller, so between 0 and 180 degrees. Help users porting by showing a simple way to achieve the angle() behavior in the deprecation message. Change-Id: I66f77d2b4e688562e443428209737aa3332a448f Pick-to: 5.15 Fixes: QTBUG-85087 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/tools/qline.h')
-rw-r--r--src/corelib/tools/qline.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qline.h b/src/corelib/tools/qline.h
index c96d624afd..d4f62024d1 100644
--- a/src/corelib/tools/qline.h
+++ b/src/corelib/tools/qline.h
@@ -254,7 +254,7 @@ public:
#if QT_DEPRECATED_SINCE(5, 14)
QT_DEPRECATED_VERSION_X(5, 14, "Use intersects() instead")
IntersectType intersect(const QLineF &l, QPointF *intersectionPoint) const;
- QT_DEPRECATED_X("Use angleTo() instead, take care that the return value is between 0 and 360 degree.")
+ QT_DEPRECATED_X("Use qMin(l1.angleTo(l2), l2.angleTo(l1)) instead")
qreal angle(const QLineF &l) const;
#endif