summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxrepeater.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-07-30 05:39:36 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-07-30 05:39:36 (GMT)
commitcaad9036009cd68e40ae469fb978ba6122cecb12 (patch)
tree818be609b0f07e6be2e6cc4dbd14bf3e6c1bd711 /src/declarative/fx/qfxrepeater.cpp
parentab625efe61c4bd4c59064648d75da6d46acdc762 (diff)
downloadQt-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.cpp11
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;
}
/*!