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

Method clearSketch

graph_view.cpp:192–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected