3309 for (
int i = 0; i < 4; ++i) {
3313 delta /=
qSqrt(delta.
x() * delta.
x() + delta.
y() * delta.
y());
3318 min_screen_delta_len =
qMin(min_screen_delta_len,
3319 qreal(
qSqrt(screen_delta.x() * screen_delta.x() + screen_delta.y() * screen_delta.y())));
3322 const qreal padding = 2.0f;
3324 qreal grow = padding / min_screen_delta_len;
QPointF bottomRight() const
Returns the position of the rectangle's bottom-right corner.
qreal right() const
Returns the x-coordinate of the rectangle's right edge.
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
The QPointF class defines a point in the plane using floating point precision.
qreal left() const
Returns the x-coordinate of the rectangle's left edge.
QPointF topLeft() const
Returns the position of the rectangle's top-left corner.
qreal x() const
Returns the x-coordinate of this point.
static const QRectF boundingRect(const QPointF *points, int pointCount)
The QRectF class defines a rectangle in the plane using floating point precision. ...
QRectF adjusted(qreal x1, qreal y1, qreal x2, qreal y2) const
Returns a new rectangle with dx1, dy1, dx2 and dy2 added respectively to the existing coordinates of ...
Q_CORE_EXPORT QTextStream & center(QTextStream &s)
The QRect class defines a rectangle in the plane using integer precision.
QTransform matrix() const
qreal y() const
Returns the y-coordinate of this point.
qreal top() const
Returns the y-coordinate of the rectangle's top edge.
qreal bottom() const
Returns the y-coordinate of the rectangle's bottom edge.
static int grow(int size)
QPointF center() const
Returns the center point of the rectangle.