Commit b478528c authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port away from deprecated QLineF::intersect

parent 88dd56a2
......@@ -1923,13 +1923,13 @@ void View::drawLabel(QPainter *painter, const QColor &color, const QPointF &real
QPointF intersect = bestCenter;
// Where does line intersect the rectangle?
if (QLineF(rect.topLeft(), rect.topRight()).intersect(line, &intersect) == QLineF::BoundedIntersection)
if (QLineF(rect.topLeft(), rect.topRight()).intersects(line, &intersect) == QLineF::BoundedIntersection)
lineStart = intersect;
else if (QLineF(rect.topRight(), rect.bottomRight()).intersect(line, &intersect) == QLineF::BoundedIntersection)
else if (QLineF(rect.topRight(), rect.bottomRight()).intersects(line, &intersect) == QLineF::BoundedIntersection)
lineStart = intersect;
else if (QLineF(rect.bottomRight(), rect.bottomLeft()).intersect(line, &intersect) == QLineF::BoundedIntersection)
else if (QLineF(rect.bottomRight(), rect.bottomLeft()).intersects(line, &intersect) == QLineF::BoundedIntersection)
lineStart = intersect;
else if (QLineF(rect.bottomLeft(), rect.topLeft()).intersect(line, &intersect) == QLineF::BoundedIntersection)
else if (QLineF(rect.bottomLeft(), rect.topLeft()).intersects(line, &intersect) == QLineF::BoundedIntersection)
lineStart = intersect;
painter->drawLine(lineStart, pixelCenter);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment