MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / wheelEvent

Method wheelEvent

Src/FrmViewerOpenGL.cpp:409–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407}
408
409void CFrmViewerOpenGL::wheelEvent(QWheelEvent *event)
410{
411#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
412 QPointF pos = event->position();
413 if(TranslationMousePoint(event->position(), pos)) return;
414#else
415 QPointF pos = event->pos();
416 if(TranslationMousePoint(event->pos(), pos)) return;
417#endif
418 emit sigWheelEvent(event->buttons(), QPoint(pos.x(), pos.y()), event->angleDelta());
419 event->accept();
420}
421
422void CFrmViewerOpenGL::keyPressEvent(QKeyEvent *event)
423{

Callers

nothing calls this directly

Calls 1

acceptMethod · 0.45

Tested by

no test coverage detected