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>
This commit is contained in:
parent
1a63409579
commit
95b5a56071
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user