equal
deleted
inserted
replaced
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))); |