MCPcopy Create free account
hub / github.com/Linloir/GraphBuilder / MyGraphicsLineItem

Method MyGraphicsLineItem

graph_view.cpp:745–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

743/********************************************************/
744
745MyGraphicsLineItem::MyGraphicsLineItem(MyGraphicsVexItem *start, MyGraphicsVexItem *end, bool hasDir, QGraphicsItem *parent) :
746 QGraphicsLineItem(parent),
747 hasDirection(hasDir),
748 startVex(start),
749 endVex(end){
750 //Set display effect
751 defaultPen.setWidth(lineWidth);
752 defaultPen.setStyle(lineStyle);
753 defaultPen.setCapStyle(capStyle);
754 defaultPen.setColor(defaultColor);
755 curPen = defaultPen;
756 //textItem = new QGraphicsSimpleTextItem(text);
757}
758
759void MyGraphicsLineItem::refrshLine(){
760 setLengthRate(1);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected