aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2020-05-07 12:25:15 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2020-05-07 10:26:01 +0000
commit149453941a2ba82575457bbed65562b8c6a946ef (patch)
tree08e93d4c44cced236e0c7772311424592db0d18c
parenta2cedf76f25785e3d0ca7c3e7d601a0f7519d336 (diff)
QmlDesigner: Fix bounding rectangle in FlowEditor
Change-Id: I30c3a5d88bbbe2fce968a23c9f9acb17771366a9 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp b/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp
index 3dff938e4d..0c022431c9 100644
--- a/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp
+++ b/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp
@@ -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());