| 612 | } |
| 613 | |
| 614 | void 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 | |
| 633 | void MyGraphicsVexItem::onMouseMove(QPointF position){ |
| 634 | if(state & PREPARING) |
no test coverage detected