summaryrefslogtreecommitdiffstats
path: root/src/declarative/util
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/util
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/util')
-rw-r--r--src/declarative/util/qfxview.cpp2
-rw-r--r--src/declarative/util/qmlstateoperations.cpp10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/declarative/util/qfxview.cpp b/src/declarative/util/qfxview.cpp
index 96d9e8e..2f5cdd3 100644
--- a/src/declarative/util/qfxview.cpp
+++ b/src/declarative/util/qfxview.cpp
@@ -443,7 +443,7 @@ QFxItem* QFxView::addItem(const QString &qml, QFxItem* parent)
if (!parent)
parent = d->root;
- item->setItemParent(parent);
+ item->setParentItem(parent);
return item;
}
return 0;
diff --git a/src/declarative/util/qmlstateoperations.cpp b/src/declarative/util/qmlstateoperations.cpp
index 3d03c34..7caf3ed 100644
--- a/src/declarative/util/qmlstateoperations.cpp
+++ b/src/declarative/util/qmlstateoperations.cpp
@@ -63,8 +63,8 @@ public:
void QmlParentChangePrivate::doChange(QFxItem *targetParent)
{
- if (targetParent && target && target->itemParent()) {
- QPointF me = target->itemParent()->mapToScene(QPointF(0,0));
+ if (targetParent && target && target->parentItem()) {
+ QPointF me = target->parentItem()->mapToScene(QPointF(0,0));
QPointF them = targetParent->mapToScene(QPointF(0,0));
QPointF themx = targetParent->mapToScene(QPointF(1,0));
@@ -73,7 +73,7 @@ void QmlParentChangePrivate::doChange(QFxItem *targetParent)
themx -= them;
themy -= them;
- target->setItemParent(targetParent);
+ target->setParentItem(targetParent);
// XXX - this is silly and will only work in a few cases
@@ -112,7 +112,7 @@ void QmlParentChangePrivate::doChange(QFxItem *targetParent)
target->setX(target->x() - rx);
target->setY(target->y() - ry);
} else if (target) {
- target->setItemParent(targetParent);
+ target->setParentItem(targetParent);
}
}
@@ -182,7 +182,7 @@ void QmlParentChange::execute()
{
Q_D(QmlParentChange);
if (d->target)
- d->origParent = d->target->itemParent();
+ d->origParent = d->target->parentItem();
d->doChange(d->parent);
}