summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2009-07-28 04:11:27 (GMT)
committerLars Knoll <lars.knoll@nokia.com>2009-07-29 03:47:30 (GMT)
commit9684a3aa09878fe305ca22fad85617fe7ac37786 (patch)
treec0062ad1fd073f710c2ea960ac8057cd3b7b34ee /src
parent3de172e037eef64a5b7065dc574f761818d95bbb (diff)
downloadQt-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.cpp11
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 *>());
}
/*!