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

Method mouseReleaseEvent

qt/draw_widget.cpp:371–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371void DrawWidget::mouseReleaseEvent(QMouseEvent * e)
372{
373 if (m_screenshotMode)
374 return;
375
376 QOpenGLWidget::mouseReleaseEvent(e);
377 if (IsLeftButton(e) && !IsAltModifier(e))
378 m_framework.TouchEvent(GetDfTouchEventFromQMouseEvent(e, df::TouchEvent::TOUCH_UP));
379 else if (m_selectionMode && IsRightButton(e) && m_rubberBand != nullptr && m_rubberBand->isVisible())
380 ProcessSelectionMode();
381}
382
383void DrawWidget::ProcessSelectionMode()
384{

Callers

nothing calls this directly

Calls 5

IsLeftButtonFunction · 0.85
IsAltModifierFunction · 0.85
IsRightButtonFunction · 0.85
TouchEventMethod · 0.45
isVisibleMethod · 0.45

Tested by

no test coverage detected