src/gui/graphicsview/qgraphicswidget_p.cpp
changeset 25 e24348a560a6
parent 22 79de32ba3296
child 30 5dc02b23752f
equal deleted inserted replaced
23:89e065397ea6 25:e24348a560a6
   823         Q_Q(QGraphicsWidget);
   823         Q_Q(QGraphicsWidget);
   824         q->updateGeometry();
   824         q->updateGeometry();
   825     }
   825     }
   826 }
   826 }
   827 
   827 
       
   828 void QGraphicsWidgetPrivate::setGeometryFromSetPos()
       
   829 {
       
   830     if (inSetGeometry)
       
   831         return;
       
   832     Q_Q(QGraphicsWidget);
       
   833     inSetPos = 1;
       
   834     // Ensure setGeometry is called (avoid recursion when setPos is
       
   835     // called from within setGeometry).
       
   836     q->setGeometry(QRectF(pos, q->size()));
       
   837     inSetPos = 0 ;
       
   838 }
       
   839 
   828 QT_END_NAMESPACE
   840 QT_END_NAMESPACE
   829 
   841 
   830 #endif //QT_NO_GRAPHICSVIEW
   842 #endif //QT_NO_GRAPHICSVIEW