--- a/src/gui/graphicsview/qgraphicswidget.cpp Thu May 27 13:40:48 2010 +0300
+++ b/src/gui/graphicsview/qgraphicswidget.cpp Fri Jun 11 14:24:45 2010 +0300
@@ -1044,13 +1044,7 @@
}
break;
case ItemPositionHasChanged:
- if (!d->inSetGeometry) {
- d->inSetPos = 1;
- // Ensure setGeometry is called (avoid recursion when setPos is
- // called from within setGeometry).
- setGeometry(QRectF(pos(), size()));
- d->inSetPos = 0 ;
- }
+ d->setGeometryFromSetPos();
break;
case ItemParentChange: {
QGraphicsItem *parent = qVariantValue<QGraphicsItem *>(value);