src/gui/graphicsview/qgraphicsitem.cpp
changeset 25 e24348a560a6
parent 22 79de32ba3296
child 30 5dc02b23752f
equal deleted inserted replaced
23:89e065397ea6 25:e24348a560a6
  3576         return;
  3576         return;
  3577 
  3577 
  3578     // Update and repositition.
  3578     // Update and repositition.
  3579     if (!(d_ptr->flags & ItemSendsGeometryChanges)) {
  3579     if (!(d_ptr->flags & ItemSendsGeometryChanges)) {
  3580         d_ptr->setPosHelper(pos);
  3580         d_ptr->setPosHelper(pos);
       
  3581         if (d_ptr->isWidget)
       
  3582             static_cast<QGraphicsWidget *>(this)->d_func()->setGeometryFromSetPos();
  3581         return;
  3583         return;
  3582     }
  3584     }
  3583 
  3585 
  3584     // Notify the item that the position is changing.
  3586     // Notify the item that the position is changing.
  3585     const QVariant newPosVariant(itemChange(ItemPositionChange, qVariantFromValue<QPointF>(pos)));
  3587     const QVariant newPosVariant(itemChange(ItemPositionChange, qVariantFromValue<QPointF>(pos)));