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

Method hoverEnterEvent

QtNodeEditor/src/NodeGraphicsObject.cpp:353–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351
352
353void
354NodeGraphicsObject::
355hoverEnterEvent(QGraphicsSceneHoverEvent * event)
356{
357 // bring all the colliding nodes to background
358 QList<QGraphicsItem *> overlapItems = collidingItems();
359
360 for (QGraphicsItem *item : overlapItems)
361 {
362 if (item->zValue() > 0.0)
363 {
364 item->setZValue(0.0);
365 }
366 }
367 // bring this node forward
368 setZValue(1.0);
369
370 _node.nodeGeometry().setHovered(true);
371 update();
372 _scene.nodeHovered(node(), event->screenPos());
373 event->accept();
374}
375
376
377void

Callers

nothing calls this directly

Calls 1

setHoveredMethod · 0.80

Tested by

no test coverage detected