Logo Search packages:      
Sourcecode: kdenlive version File versions  Download package

void BPoint::setP ( QPointF  point,
bool  updateHandles = true 
)

Sets p to.

Parameters:
point.
updateHandles(default = true) Whether to make sure the handles keep their position relative to p.

Definition at line 55 of file bpoint.cpp.

References h1, h2, and p.

Referenced by BezierSplineWidget::slotUpdatePointP().

{
    QPointF offset = point - p;
    p = point;
    if (updateHandles) {
        h1 += offset;
        h2 += offset;
    }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index