]> git.sesse.net Git - kdenlive/blobdiff - src/beziercurve/bpoint.h
make slot names more kdenlive conform
[kdenlive] / src / beziercurve / bpoint.h
index 4619dc940b9d425faf3db59749619e112275bf58..2bd1fa29121babdd76d1a40f2a9c12441da3810a 100644 (file)
@@ -33,6 +33,10 @@ public:
     /** @brief Sets up according to the params. Linking detecting is done using autoSetLinked(). */
     BPoint(QPointF handle1, QPointF point, QPointF handle2);
 
+    /** @brief Returns h1 if i = 0, p if i = 1, h2 if i = 2. */
+    QPointF &operator[](int i);
+    /** @brief Returns h1 if i = 0, p if i = 1, h2 if i = 2. */
+    const QPointF &operator[](int i) const;
     bool operator==(const BPoint &point) const;
 
     /** @brief Sets p to @param point.
@@ -60,7 +64,7 @@ public:
     /** handle 2 */
     QPointF h2;
 
-    /** handles are locked to achieve a natural locking spline => PH1 = -r*PH2 ; a line can be drawn through h1, p, h2 */
+    /** handles are linked to achieve a natural locking spline => PH1 = -r*PH2 ; a line can be drawn through h1, p, h2 */
     bool handlesLinked;
 };