diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-07-30 05:39:36 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-07-30 05:39:36 (GMT) |
commit | caad9036009cd68e40ae469fb978ba6122cecb12 (patch) | |
tree | 818be609b0f07e6be2e6cc4dbd14bf3e6c1bd711 /src/declarative/fx/qfxrepeater.cpp | |
parent | ab625efe61c4bd4c59064648d75da6d46acdc762 (diff) | |
download | Qt-caad9036009cd68e40ae469fb978ba6122cecb12.zip Qt-caad9036009cd68e40ae469fb978ba6122cecb12.tar.gz Qt-caad9036009cd68e40ae469fb978ba6122cecb12.tar.bz2 |
More QFxItem cleanup.
Diffstat (limited to 'src/declarative/fx/qfxrepeater.cpp')
-rw-r--r-- | src/declarative/fx/qfxrepeater.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/declarative/fx/qfxrepeater.cpp b/src/declarative/fx/qfxrepeater.cpp index a231f20..8f30324 100644 --- a/src/declarative/fx/qfxrepeater.cpp +++ b/src/declarative/fx/qfxrepeater.cpp @@ -244,10 +244,15 @@ void QFxRepeater::componentComplete() /*! \internal */ -void QFxRepeater::parentChanged(QFxItem *o, QFxItem *n) +QVariant QFxRepeater::itemChange(GraphicsItemChange change, + const QVariant &value) { - QFxItem::parentChanged(o, n); - regenerate(); + QVariant rv = QFxItem::itemChange(change, value); + if (change == ItemParentHasChanged) { + regenerate(); + } + + return rv; } /*! |