Skip to content

Commit

Permalink
Merge pull request #243 from cneben/f/#228-tree-layout-algorithm
Browse files Browse the repository at this point in the history
Tentative optimisation ortho edges...
  • Loading branch information
cneben authored Aug 15, 2024
2 parents 669ebb1 + 9f64e79 commit e84a1a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EdgeTemplate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ Item {
id: edgeShape
anchors.fill: parent
visible: edgeItem.visible && !edgeItem.hidden
preferredRendererType: Shape.CurveRenderer
// Note 20240815: Do not pay the curve renderer cost for horiz/vert ortho lines
preferredRendererType: lineType === Qan.EdgeStyle.Ortho ? Qan.EdgeStyle.Ortho : Shape.CurveRenderer
property var curvedLine : undefined
property var straightLine : undefined
property var orthoLine : undefined
Expand Down

0 comments on commit e84a1a5

Please sign in to comment.