| 369 | } |
| 370 | |
| 371 | void 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 | |
| 383 | void DrawWidget::ProcessSelectionMode() |
| 384 | { |
nothing calls this directly
no test coverage detected