| 743 | |
| 744 | |
| 745 | void UBGraphicsItemDelegate::commitUndoStep() |
| 746 | { |
| 747 | UBResizableGraphicsItem* resizableItem = dynamic_cast<UBResizableGraphicsItem*>(mDelegated); |
| 748 | |
| 749 | if (mDelegated->pos() != mPreviousPosition |
| 750 | || mDelegated->transform() != mPreviousTransform |
| 751 | || (resizableItem && resizableItem->size() != mPreviousSize)) |
| 752 | { |
| 753 | UBGraphicsItemTransformUndoCommand *uc = |
| 754 | new UBGraphicsItemTransformUndoCommand(mDelegated, |
| 755 | mPreviousPosition, |
| 756 | mPreviousTransform, |
| 757 | mPreviousZValue, |
| 758 | mPreviousSize); |
| 759 | |
| 760 | UBApplication::undoStack->push(uc); |
| 761 | } |
| 762 | } |
| 763 | |
| 764 | void UBGraphicsItemDelegate::onZoomChanged() |
| 765 | { |
no test coverage detected