feat: cubic edges

This commit is contained in:
parker
2025-06-23 15:55:54 +01:00
parent 0ad623407a
commit 9bddf401f4

View File

@@ -23,9 +23,10 @@ NodeEdgeGraphic::~NodeEdgeGraphic()
void NodeEdgeGraphic::updatePath()
{
qreal cubicStrength = 40;
path_.clear();
path_.moveTo(pos1_);
path_.lineTo(pos2_);
path_.cubicTo(pos1_-QPoint(0,cubicStrength), pos2_+QPoint(0,cubicStrength), pos2_);
update();
}