QList<QGraphicsItem*> list = scene()->items(sceneShape, Qt::IntersectsItemShape);
list.removeAll(this);
if (!list.isEmpty()) {
- for (int i = 0; i < list.count(); i++) {
+ for (int i = 0; i < list.count(); ++i) {
if (list.at(i)->type() == Type) return pos();
}
}