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

Method reactToPossibleConnection

QtNodeEditor/src/Node.cpp:94–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92
93
94void
95Node::
96reactToPossibleConnection(PortType reactingPortType,
97 NodeDataType const &reactingDataType,
98 QPointF const &scenePoint)
99{
100 QTransform const t = _nodeGraphicsObject->sceneTransform();
101
102 QPointF p = t.inverted().map(scenePoint);
103
104 _nodeGeometry.setDraggingPosition(p);
105
106 _nodeGraphicsObject->update();
107
108 _nodeState.setReaction(NodeState::REACTING,
109 reactingPortType,
110 reactingDataType);
111}
112
113
114void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected