Commit ea5169a1 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner: Improve naming of variables

Change-Id: I8429517b81308f4a6a15b90a1ac7486de49562d9
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent ba6cc1d0
......@@ -238,13 +238,13 @@ static inline bool isRectangleSane(const QRectF &rect)
return rect.isValid() && (rect.width() < 10000) && (rect.height() < 10000);
}
QRectF GraphicalNodeInstance::boundingRectWithStepChilds(QQuickItem *parentItem) const
QRectF GraphicalNodeInstance::boundingRectWithStepChilds(QQuickItem *item) const
{
QRectF boundingRect = parentItem->boundingRect();
QRectF boundingRect = item->boundingRect();
foreach (QQuickItem *childItem, parentItem->childItems()) {
foreach (QQuickItem *childItem, item->childItems()) {
if (!nodeInstanceServer()->hasInstanceForObject(childItem)) {
QRectF transformedRect = childItem->mapRectToItem(parentItem, boundingRectWithStepChilds(childItem));
QRectF transformedRect = childItem->mapRectToItem(item, boundingRectWithStepChilds(childItem));
if (isRectangleSane(transformedRect))
boundingRect = boundingRect.united(transformedRect);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment