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

Method mousePressEvent

Src/FrmViewerOpenGL.cpp:382–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382void CFrmViewerOpenGL::mousePressEvent(QMouseEvent *event)
383{
384 QPointF pos = event->pos();
385 if(TranslationMousePoint(event->pos(), pos)) return;
386 //qDebug() << "CFrmViewer::mousePressEvent" << event->button() << event->buttons();
387 emit sigMousePressEvent(event->buttons(), QPoint(pos.x(), pos.y()));
388 event->accept();
389}
390
391void CFrmViewerOpenGL::mouseReleaseEvent(QMouseEvent *event)
392{

Callers

nothing calls this directly

Calls 1

acceptMethod · 0.45

Tested by

no test coverage detected