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

Method remove

graph_view.cpp:614–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612}
613
614void MyGraphicsVexItem::remove(){
615 int s = linesStartWith.size();
616 for(int i = 0; i < s; i++){
617 linesStartWith[0]->remove();
618 }
619 linesStartWith.clear();
620 s = linesEndWith.size();
621 for(int i = 0; i < s; i++){
622 linesEndWith[0]->remove();
623 }
624 linesEndWith.clear();
625 if(tag)
626 scene()->removeItem(tag);
627 scene()->removeItem(nameTag);
628 scene()->removeItem(this);
629 emit removed(this);
630 this->deleteLater();
631}
632
633void MyGraphicsVexItem::onMouseMove(QPointF position){
634 if(state & PREPARING)

Callers 6

removeStartLineMethod · 0.80
removeEndLineMethod · 0.80
RemoveVexMethod · 0.80
RemoveArcMethod · 0.80
InitMethod · 0.80
RemoveWidgetMethod · 0.80

Calls 3

clearMethod · 0.80
removeStartLineMethod · 0.80
removeEndLineMethod · 0.80

Tested by

no test coverage detected