MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / hoverMoveEvent

Method hoverMoveEvent

ImagePlay/src/IPImageViewer.cpp:345–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345void IPPixmapItem::hoverMoveEvent(QGraphicsSceneHoverEvent *event)
346{
347 int posX = (int) event->pos().x() + 0.5; // round to next full pixel
348 int posY = (int) event->pos().y() + 0.5; // round to next full pixel
349
350 _imageViewer->updateMousePosition(posX, posY);
351}

Callers

nothing calls this directly

Calls 2

updateMousePositionMethod · 0.80
posMethod · 0.45

Tested by

no test coverage detected