| 178 | } |
| 179 | |
| 180 | MyGraphicsVexItem* MyGraphicsView::addVex(QPointF center, qreal radius){ |
| 181 | MyGraphicsVexItem *newVex = new MyGraphicsVexItem(center, radius, vexID++); |
| 182 | this->scene()->addItem(newVex); |
| 183 | newVex->estConnection(this); |
| 184 | newVex->showAnimation(); |
| 185 | vexNum++; |
| 186 | vexes.push_back(newVex); |
| 187 | emit vexAdded(newVex); |
| 188 | emit logAdded(new viewLog("[Vex] | Added \""+newVex->Text()+"\"")); |
| 189 | return newVex; |
| 190 | } |
| 191 | |
| 192 | void MyGraphicsView::clearSketch(){ |
| 193 | if(sketchItem != nullptr){ |
nothing calls this directly
no test coverage detected