]> git.sesse.net Git - kdenlive/blobdiff - src/beziercurve/beziersplineeditor.cpp
Bezier Spline:
[kdenlive] / src / beziercurve / beziersplineeditor.cpp
index c6183ee6406b39b9a301e1053285998531442839..a507f4e0509f295513cf757ba8eb61f9130de4b5 100644 (file)
@@ -216,7 +216,9 @@ void BezierSplineEditor::paintEvent(QPaintEvent* event)
     for (int i = 0; i <= max; ++i) {
         point = m_spline.points().at(i);
         if (i == m_currentPointIndex) {
+            // selected point: fill p and handles
             p.setBrush(QBrush(QColor(Qt::red), Qt::SolidPattern));
+            // connect p and handles with lines
             if (i != 0)
                 p.drawLine(QLineF(point.h1.x() * wWidth, wHeight - point.h1.y() * wHeight, point.p.x() * wWidth, wHeight - point.p.y() * wHeight));
             if (i != max)