diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-11-17 06:35:58 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-11-17 06:35:58 (GMT) |
commit | b7fe8bdad08cc87130a131c657af4cdeaa6efa79 (patch) | |
tree | 7478e1e475ac9f6662360d8ed4062ce80c7eb606 /src | |
parent | 9b4124c699a7c958ffa132e31db6901cd719847c (diff) | |
download | Qt-b7fe8bdad08cc87130a131c657af4cdeaa6efa79.zip Qt-b7fe8bdad08cc87130a131c657af4cdeaa6efa79.tar.gz Qt-b7fe8bdad08cc87130a131c657af4cdeaa6efa79.tar.bz2 |
More repeater tests.
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicsrepeater.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsrepeater.cpp b/src/declarative/graphicsitems/qmlgraphicsrepeater.cpp index 48758a7..7aed760 100644 --- a/src/declarative/graphicsitems/qmlgraphicsrepeater.cpp +++ b/src/declarative/graphicsitems/qmlgraphicsrepeater.cpp @@ -266,8 +266,10 @@ void QmlGraphicsRepeater::clear() { Q_D(QmlGraphicsRepeater); if (d->model) { - foreach (QmlGraphicsItem *item, d->deletables) + foreach (QmlGraphicsItem *item, d->deletables) { + item->setParentItem(this); d->model->release(item); + } } d->deletables.clear(); } |