public EdgeItem(NodeItem source, NodeItem target) { ++count; SetPen( *tp ); // !!! source.AddOutEdge(this); target.AddInEdge(this); SetLine(new QLineF(source.x(), source.y(), target.x(), target.y())); SetZValue(127); SetBoundingRegionGranularity(0.05); }
public EdgeItem(NodeItem source, NodeItem target) { ++count; SetPen(*tp); // !!! source.AddOutEdge(this); target.AddInEdge(this); SetLine(new QLineF(source.x(), source.y(), target.x(), target.y())); SetZValue(127); SetBoundingRegionGranularity(0.05); }