MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / wheelEvent

Method wheelEvent

src/mapview.cpp:568–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566}
567
568void MapView::wheelEvent(QWheelEvent *e)
569{
570 const qreal ang = e->angleDelta().y() / 8; // e->delta() / 8;
571 zoom(pow(2, ang/100));
572}
573
574void MapView::mousePressEvent(QMouseEvent *e)
575{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected