| 631 | } |
| 632 | |
| 633 | void MyGraphicsVexItem::onMouseMove(QPointF position){ |
| 634 | if(state & PREPARING) |
| 635 | return; |
| 636 | if((state & ON_LEFT_CLICK) == 0){ |
| 637 | if(this->contains(position)){ |
| 638 | if((state & ON_HOVER) == 0){ |
| 639 | emit setHover(true); |
| 640 | hoverInEffect(); |
| 641 | state |= ON_HOVER; |
| 642 | } |
| 643 | } |
| 644 | else{ |
| 645 | if(state & ON_HOVER){ |
| 646 | emit setHover(false); |
| 647 | hoverOutEffect(); |
| 648 | state &= ~ON_HOVER; |
| 649 | } |
| 650 | } |
| 651 | } |
| 652 | else{ |
| 653 | move(position); |
| 654 | state &= ~ON_SELECTED; |
| 655 | } |
| 656 | } |
| 657 | |
| 658 | void MyGraphicsVexItem::onLeftClick(QPointF position){ |
| 659 | if(state & PREPARING) |
nothing calls this directly
no outgoing calls
no test coverage detected