MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / wheelEvent

Method wheelEvent

examples/triage/byte.cpp:660–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658
659
660void ByteView::wheelEvent(QWheelEvent* event)
661{
662 if (event->angleDelta().x()) // ignore horizontal scrolling
663 return;
664
665 m_wheelDelta -= event->angleDelta().y();
666 if ((m_wheelDelta <= -40) || (m_wheelDelta >= 40))
667 {
668 int lines = m_wheelDelta / 40;
669 m_wheelDelta -= lines * 40;
670 scrollLines(lines);
671 }
672}
673
674
675void ByteView::scrollBarMoved(int value)

Callers

nothing calls this directly

Calls 2

xMethod · 0.80
yMethod · 0.80

Tested by

no test coverage detected