MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / mouseMoveEvent

Method mouseMoveEvent

QtNodeEditor/src/FlowView.cpp:326–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324
325
326void
327FlowView::
328mouseMoveEvent(QMouseEvent *event)
329{
330 QGraphicsView::mouseMoveEvent(event);
331 if (scene()->mouseGrabberItem() == nullptr && event->buttons() == Qt::LeftButton)
332 {
333 // Make sure shift is not being pressed
334 if ((event->modifiers() & Qt::ShiftModifier) == 0)
335 {
336 QPointF difference = _clickPos - mapToScene(event->pos());
337 setSceneRect(sceneRect().translated(difference.x(), difference.y()));
338 }
339 }
340}
341
342
343void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected