Logo Search packages:      
Sourcecode: kdenlive version File versions

int KisCubicCurve::addPoint ( const QPointF &  point )

Add a point to the curve, the list of point is always sorted.

Returns:
the index of the inserted point

Definition at line 387 of file kis_cubic_curve.cpp.

Referenced by KisCurveWidget::addPointInTheMiddle().

{
    d->data.detach();
    d->data->points.append(point);
    d->data->keepSorted();
    d->data->invalidate();
    return d->data->points.indexOf(point);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index