| 351 | |
| 352 | |
| 353 | void |
| 354 | NodeGraphicsObject:: |
| 355 | hoverEnterEvent(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 | |
| 377 | void |
nothing calls this directly
no test coverage detected