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

void setLine ( const QLineF line  ) 

Sets the item's line to be the given line.

See also:
line()

Definition at line 5971 of file qgraphicsitem.cpp.

References QGraphicsItem::prepareGeometryChange(), and QGraphicsItem::update().

Referenced by DiagramScene::mouseMoveEvent(), Arrow::paint(), QGraphicsLineItem(), and Arrow::updatePosition().

{
    Q_D(QGraphicsLineItem);
    if (d->line == line)
        return;
    prepareGeometryChange();
    d->line = line;
    update();
}


Generated by  Doxygen 1.6.0   Back to index