forked from qt-creator/qt-creator
QmlDesigner: Fix bounding rectangle in FlowEditor
Change-Id: I30c3a5d88bbbe2fce968a23c9f9acb17771366a9 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -755,7 +755,7 @@ void FormEditorTransitionItem::updateGeometry()
|
|||||||
QPointF toP = QmlItemNode(resolved.to).flowPosition();
|
QPointF toP = QmlItemNode(resolved.to).flowPosition();
|
||||||
|
|
||||||
if (QmlItemNode(resolved.to).isFlowDecision())
|
if (QmlItemNode(resolved.to).isFlowDecision())
|
||||||
sizeTo = QRectF(0, 0, flowBlockSize, flowBlockSize);
|
sizeTo = QRectF(0, 0, flowBlockSize * 2, flowBlockSize * 2);
|
||||||
|
|
||||||
qreal x1 = fromP.x();
|
qreal x1 = fromP.x();
|
||||||
qreal x2 = toP.x();
|
qreal x2 = toP.x();
|
||||||
@@ -1146,6 +1146,7 @@ void FormEditorTransitionItem::paint(QPainter *painter, const QStyleOptionGraphi
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
painter->save();
|
painter->save();
|
||||||
|
|
||||||
painter->setRenderHint(QPainter::Antialiasing);
|
painter->setRenderHint(QPainter::Antialiasing);
|
||||||
|
|
||||||
ResolveConnection resolved(qmlItemNode());
|
ResolveConnection resolved(qmlItemNode());
|
||||||
|
Reference in New Issue
Block a user