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

Method onMouseMove

graph_view.cpp:633–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633void 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
658void MyGraphicsVexItem::onLeftClick(QPointF position){
659 if(state & PREPARING)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected