| 743 | /********************************************************/ |
| 744 | |
| 745 | MyGraphicsLineItem::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 | |
| 759 | void MyGraphicsLineItem::refrshLine(){ |
| 760 | setLengthRate(1); |
nothing calls this directly
no outgoing calls
no test coverage detected