Map API refactoring
[GPXSee.git] / src / map / textitem.cpp
blobb3bf32437b15b44a7b1c37bb9e1052c17729a2d0
1 #include "textitem.h"
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()))
13 return true;
16 return false;