forked from qt-creator/qt-creator
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:
committed by
Thomas Hartmann
parent
d1fa28e7a3
commit
d349e23a3e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user