| 190 | } |
| 191 | |
| 192 | void MyGraphicsView::clearSketch(){ |
| 193 | if(sketchItem != nullptr){ |
| 194 | scene()->removeItem(sketchItem); |
| 195 | sketchItem = nullptr; |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | void MyGraphicsView::sketchLine(QPointF start, QPointF end){ |
| 200 | QGraphicsLineItem *newLine = new QGraphicsLineItem(start.x(), start.y(), end.x(), end.y()); |
nothing calls this directly
no outgoing calls
no test coverage detected