4 QRectF addBBox(QRectF r1, QRectF r2)
6 // Find smallest QRectF containing given rectangles
10 if (r1.left() <= r2.left() )
11 n.setLeft(r1.left() );
13 n.setLeft(r2.left() );
16 if (r1.top() <= r2.top() )
22 if (r1.right() <= r2.right() )
23 n.setRight(r2.right() );
25 n.setRight(r1.right() );
28 if (r1.bottom() <= r2.bottom() )
29 n.setBottom(r2.bottom() );
31 n.setBottom(r1.bottom() );
35 bool inBox(const QPointF &p, const QRectF &box)
37 if (p.x() >= box.left() && p.x() <= box.right()
38 && p.y() <= box.bottom() && p.y() >= box.top() )