summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxrepeater.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2009-07-22 18:27:29 (GMT)
committerLars Knoll <lars.knoll@nokia.com>2009-07-29 03:41:56 (GMT)
commitc2cfe5c403f379b3196416960880ade859b7e509 (patch)
tree754ab9e38b93646dcfe035ec4e143e6d8c7c55be /src/declarative/fx/qfxrepeater.cpp
parent28a72e09be58628e6f30c6bd345ff1fe63a117a4 (diff)
downloadQt-c2cfe5c403f379b3196416960880ade859b7e509.zip
Qt-c2cfe5c403f379b3196416960880ade859b7e509.tar.gz
Qt-c2cfe5c403f379b3196416960880ade859b7e509.tar.bz2
remove itemParent() and related.
Consistently use parentItem() as it is consistent with the naming in QGraphicsItem.
Diffstat (limited to 'src/declarative/fx/qfxrepeater.cpp')
-rw-r--r--src/declarative/fx/qfxrepeater.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/fx/qfxrepeater.cpp b/src/declarative/fx/qfxrepeater.cpp
index 084921b..a231f20 100644
--- a/src/declarative/fx/qfxrepeater.cpp
+++ b/src/declarative/fx/qfxrepeater.cpp
@@ -62,7 +62,7 @@ QFxItem *QFxRepeaterPrivate::addItem(QmlContext *ctxt, QFxItem *lastItem)
QObject *nobj = component->create(ctxt);
QFxItem *item = qobject_cast<QFxItem *>(nobj);
if (item) {
- item->setParent(q->itemParent());
+ item->setParent(q->parentItem());
// item->stackUnder(lastItem);
deletables << nobj;
} else {
@@ -259,7 +259,7 @@ void QFxRepeater::regenerate()
qDeleteAll(d->deletables);
d->deletables.clear();
- if (!d->component || !itemParent() || !isComponentComplete())
+ if (!d->component || !parentItem() || !isComponentComplete())
return;
QFxItem *lastItem = this;