From 1a781d12fb06541fe921e1506b28007b34494a9e Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 27 Jul 2009 07:00:49 +0200 Subject: always set the correct point for the transform origin. --- src/declarative/fx/qfxitem.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/declarative/fx/qfxitem.cpp b/src/declarative/fx/qfxitem.cpp index efdd4fc..0cc1fbc 100644 --- a/src/declarative/fx/qfxitem.cpp +++ b/src/declarative/fx/qfxitem.cpp @@ -1044,12 +1044,8 @@ void QFxItem::geometryChanged(const QRectF &newGeometry, if (d->_anchors) d->_anchors->d_func()->updateMe(); - if (newGeometry.size() != oldGeometry.size()) { - if (rotation() && transformOrigin() != QFxItem::TopLeft) - setRotation(rotation()); - if (scale() && transformOrigin() != QFxItem::TopLeft) - setScale(scale()); - } + if (transformOrigin() != QFxItem::TopLeft) + setTransformOriginPoint(d->computeTransformOrigin()); if (newGeometry.x() != oldGeometry.x()) emit xChanged(); -- cgit v0.12