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

Method addVex

graph_view.cpp:180–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180MyGraphicsVexItem* 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
192void MyGraphicsView::clearSketch(){
193 if(sketchItem != nullptr){

Callers

nothing calls this directly

Calls 3

estConnectionMethod · 0.80
showAnimationMethod · 0.80
TextMethod · 0.80

Tested by

no test coverage detected