Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

void QPainterPath::setElementPositionAt ( int  index,
qreal  x,
qreal  y 
) [inline]

Since:
4.2
Sets the x and y coordinate of the element at index index to x and y.

Definition at line 349 of file qpainterpath.h.

References elementCount(), QPainterPath::Element::x, and QPainterPath::Element::y.

{
    Q_ASSERT(d_ptr);
    Q_ASSERT(i >= 0 && i < elementCount());
    detach();
    QPainterPath::Element &e = d_ptr->elements[i];
    e.x = x;
    e.y = y;
}


Generated by  Doxygen 1.6.0   Back to index