diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2009-07-28 04:11:27 (GMT) |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2009-07-29 03:47:30 (GMT) |
commit | 9684a3aa09878fe305ca22fad85617fe7ac37786 (patch) | |
tree | c0062ad1fd073f710c2ea960ac8057cd3b7b34ee /src | |
parent | 3de172e037eef64a5b7065dc574f761818d95bbb (diff) | |
download | Qt-9684a3aa09878fe305ca22fad85617fe7ac37786.zip Qt-9684a3aa09878fe305ca22fad85617fe7ac37786.tar.gz Qt-9684a3aa09878fe305ca22fad85617fe7ac37786.tar.bz2 |
Fix graphics transform handling after latest changes.
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/fx/qfxitem.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/declarative/fx/qfxitem.cpp b/src/declarative/fx/qfxitem.cpp index 5978e73..df1aea0 100644 --- a/src/declarative/fx/qfxitem.cpp +++ b/src/declarative/fx/qfxitem.cpp @@ -654,12 +654,7 @@ int QFxItemPrivate::transform_count() const void QFxItemPrivate::transform_append(QGraphicsTransform *item) { - if (!transformData) - transformData = new QGraphicsItemPrivate::TransformData; - if (!transformData->graphicsTransforms.contains(item)) - transformData->graphicsTransforms.append(item); - transformData->onlyTransform = false; - dirtySceneTransform = 1; + appendGraphicsTransform(item); } void QFxItemPrivate::transform_insert(int, QGraphicsTransform *) @@ -678,8 +673,8 @@ void QFxItemPrivate::transform_clear() { if (!transformData) return; - transformData->graphicsTransforms.clear(); - dirtySceneTransform = 1; + Q_Q(QFxItem); + q->setTransformations(QList<QGraphicsTransform *>()); } /*! |