return QPointF(pos().x() - start.x(), pos().y());
}*/
- QPainterPath shape = clipGroupShape(newPos - pos());
QList<QGraphicsItem*> collindingItems;
+ QPainterPath shape;
if (projectScene()->editMode() == NORMALEDIT) {
+ shape = clipGroupShape(newPos - pos());
collindingItems = scene()->items(shape, Qt::IntersectsItemShape);
for (int i = 0; i < children.count(); i++) {
collindingItems.removeAll(children.at(i));
}
}
-
- shape = transitionGroupShape(newPos - pos());
- collindingItems = scene()->items(shape, Qt::IntersectsItemShape);
- for (int i = 0; i < children.count(); i++) {
- collindingItems.removeAll(children.at(i));
+ if (projectScene()->editMode() == NORMALEDIT) {
+ shape = transitionGroupShape(newPos - pos());
+ collindingItems = scene()->items(shape, Qt::IntersectsItemShape);
+ for (int i = 0; i < children.count(); i++) {
+ collindingItems.removeAll(children.at(i));
+ }
}
if (collindingItems.isEmpty()) return newPos;
else {