equal
deleted
inserted
replaced
1042 QHideEvent event; |
1042 QHideEvent event; |
1043 QApplication::sendEvent(this, &event); |
1043 QApplication::sendEvent(this, &event); |
1044 } |
1044 } |
1045 break; |
1045 break; |
1046 case ItemPositionHasChanged: |
1046 case ItemPositionHasChanged: |
1047 if (!d->inSetGeometry) { |
1047 d->setGeometryFromSetPos(); |
1048 d->inSetPos = 1; |
|
1049 // Ensure setGeometry is called (avoid recursion when setPos is |
|
1050 // called from within setGeometry). |
|
1051 setGeometry(QRectF(pos(), size())); |
|
1052 d->inSetPos = 0 ; |
|
1053 } |
|
1054 break; |
1048 break; |
1055 case ItemParentChange: { |
1049 case ItemParentChange: { |
1056 QGraphicsItem *parent = qVariantValue<QGraphicsItem *>(value); |
1050 QGraphicsItem *parent = qVariantValue<QGraphicsItem *>(value); |
1057 d->fixFocusChainBeforeReparenting((parent && parent->isWidget()) ? static_cast<QGraphicsWidget *>(parent) : 0, scene()); |
1051 d->fixFocusChainBeforeReparenting((parent && parent->isWidget()) ? static_cast<QGraphicsWidget *>(parent) : 0, scene()); |
1058 |
1052 |