--- a/src/gui/graphicsview/qgraphicswidget_p.cpp Thu May 27 13:40:48 2010 +0300
+++ b/src/gui/graphicsview/qgraphicswidget_p.cpp Fri Jun 11 14:24:45 2010 +0300
@@ -825,6 +825,18 @@
}
}
+void QGraphicsWidgetPrivate::setGeometryFromSetPos()
+{
+ if (inSetGeometry)
+ return;
+ Q_Q(QGraphicsWidget);
+ inSetPos = 1;
+ // Ensure setGeometry is called (avoid recursion when setPos is
+ // called from within setGeometry).
+ q->setGeometry(QRectF(pos, q->size()));
+ inSetPos = 0 ;
+}
+
QT_END_NAMESPACE
#endif //QT_NO_GRAPHICSVIEW