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

Method wheelEvent

QtNodeEditor/src/FlowView.cpp:202–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201
202void
203FlowView::
204wheelEvent(QWheelEvent *event)
205{
206 QPoint delta = event->angleDelta();
207
208 if (delta.y() == 0)
209 {
210 event->ignore();
211 return;
212 }
213
214 double const d = delta.y() / std::abs(delta.y());
215
216 if (d > 0.0)
217 scaleUp();
218 else
219 scaleDown();
220}
221
222
223void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected