QmlDesigner: Use bounding rectangle instead of painted rectangle

Otherwise text items are to small.

Change-Id: Icafbebba6fcc749d0a5a1f5c0bf1dc05bf9f3474
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Marco Bubke
2013-05-15 11:48:11 +02:00
committed by Thomas Hartmann
parent d1fa28e7a3
commit d349e23a3e

View File

@@ -89,7 +89,7 @@ QRectF FormEditorItem::boundingRect() const
void FormEditorItem::updateGeometry()
{
prepareGeometryChange();
m_boundingRect = qmlItemNode().instancePaintedBoundingRect().adjusted(0, 0, 1., 1.);
m_boundingRect = qmlItemNode().instanceBoundingRect().adjusted(0, 0, 1., 1.);
setTransform(qmlItemNode().instanceTransform());
setTransform(m_attentionTransform, true);
//the property for zValue is called z in QGraphicsObject