summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxlayouts.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/qfxlayouts.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/qfxlayouts.cpp')
-rw-r--r--src/declarative/fx/qfxlayouts.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/declarative/fx/qfxlayouts.cpp b/src/declarative/fx/qfxlayouts.cpp
index 6b94321..0546845 100644
--- a/src/declarative/fx/qfxlayouts.cpp
+++ b/src/declarative/fx/qfxlayouts.cpp
@@ -378,12 +378,12 @@ void QFxBaseLayout::preLayout()
if (d->aut & Horizontal)
setWidth(int(width));
- else if (itemParent())
- setImplicitWidth(itemParent()->width());
+ else if (parentItem())
+ setImplicitWidth(parentItem()->width());
if (d->aut & Vertical)
setHeight(int(height));
- else if (itemParent())
- setImplicitHeight(itemParent()->height());
+ else if (parentItem())
+ setImplicitHeight(parentItem()->height());
setLayoutItem(0);
}