3 bool TextItem::collides(const QList
<TextItem
*> &list
) const
5 QRectF
r1(boundingRect());
7 for (int i
= 0; i
< list
.size(); i
++) {
8 const TextItem
* other
= list
.at(i
);
9 QRectF
r2(other
->boundingRect());
11 if (!(r1
.isEmpty() || r2
.isEmpty() || !r1
.intersects(r2
)))
12 if (other
->shape().intersects(shape()))