MCPcopy Create free account
hub / github.com/comaps/comaps / mouseReleaseEvent

Method mouseReleaseEvent

qt/qt_common/map_widget.cpp:499–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499void MapWidget::mouseReleaseEvent(QMouseEvent * e)
500{
501 if (m_screenshotMode)
502 return;
503
504 if (e->button() == Qt::RightButton)
505 emit OnContextMenuRequested(e->globalPosition().toPoint());
506
507 QOpenGLWidget::mouseReleaseEvent(e);
508 if (IsLeftButton(e))
509 m_framework.TouchEvent(GetDfTouchEventFromQMouseEvent(e, df::TouchEvent::TOUCH_UP));
510}
511
512void MapWidget::wheelEvent(QWheelEvent * e)
513{

Callers

nothing calls this directly

Calls 2

IsLeftButtonFunction · 0.85
TouchEventMethod · 0.45

Tested by

no test coverage detected