| 497 | } |
| 498 | |
| 499 | void 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 | |
| 512 | void MapWidget::wheelEvent(QWheelEvent * e) |
| 513 | { |
nothing calls this directly
no test coverage detected