QmlDesigner: Fix bounding rectangle in FlowEditor

Change-Id: I30c3a5d88bbbe2fce968a23c9f9acb17771366a9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2020-05-07 12:25:15 +02:00
parent a2cedf76f2
commit 149453941a

View File

@@ -755,7 +755,7 @@ void FormEditorTransitionItem::updateGeometry()
QPointF toP = QmlItemNode(resolved.to).flowPosition();
if (QmlItemNode(resolved.to).isFlowDecision())
sizeTo = QRectF(0, 0, flowBlockSize, flowBlockSize);
sizeTo = QRectF(0, 0, flowBlockSize * 2, flowBlockSize * 2);
qreal x1 = fromP.x();
qreal x2 = toP.x();
@@ -1146,6 +1146,7 @@ void FormEditorTransitionItem::paint(QPainter *painter, const QStyleOptionGraphi
return;
painter->save();
painter->setRenderHint(QPainter::Antialiasing);
ResolveConnection resolved(qmlItemNode());