QList<QGraphicsItem*> collidingItems;
QPainterPath shape;
- if (projectScene()->editMode() == NORMALEDIT) {
+ if (projectScene()->editMode() == NormalEdit) {
shape = clipGroupShape(newPos - pos());
collidingItems = scene()->items(shape, Qt::IntersectsItemShape);
collidingItems.removeAll(this);
}
}
- if (projectScene()->editMode() == NORMALEDIT) {
+ if (projectScene()->editMode() == NormalEdit) {
shape = transitionGroupShape(newPos - pos());
collidingItems = scene()->items(shape, Qt::IntersectsItemShape);
collidingItems.removeAll(this);