Esempio n. 1
0
void GraphNode::moveTo(const QPointF& pt)
{
    setCenter(pt);

    QListIterator<GraphEdge*> it(destinationEdges);
    while (it.hasNext())
        it.next()->destinationUpdated();

    it = QListIterator<GraphEdge*>(sourceEdges);
    while (it.hasNext()) {
        GraphEdge* edge = it.next();
        // The undirected edges were already updated because the node is both source and destination
        if (!edge->isUndirected())
            edge->sourceUpdated();
    }
}