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

Method mouseMoveEvent

qt/draw_widget.cpp:297–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void DrawWidget::mouseMoveEvent(QMouseEvent * e)
298{
299 if (m_screenshotMode)
300 return;
301
302 QOpenGLWidget::mouseMoveEvent(e);
303
304 if (IsLeftButton(e) && !IsAltModifier(e))
305 {
306 m_framework.TouchEvent(GetDfTouchEventFromQMouseEvent(e, df::TouchEvent::TOUCH_MOVE));
307 e->accept();
308 }
309
310 if (m_selectionMode && m_rubberBand != nullptr && m_rubberBand->isVisible())
311 m_rubberBand->setGeometry(QRect(m_rubberBandOrigin, e->pos()).normalized());
312}
313
314void DrawWidget::VisualizeMwmsBordersInRect(m2::RectD const & rect, bool withVertices, bool fromPackedPolygon,
315 bool boundingBox)

Callers

nothing calls this directly

Calls 5

IsLeftButtonFunction · 0.85
IsAltModifierFunction · 0.85
acceptMethod · 0.80
TouchEventMethod · 0.45
isVisibleMethod · 0.45

Tested by

no test coverage detected