| 448 | } |
| 449 | |
| 450 | void DrawWidget::keyReleaseEvent(QKeyEvent * e) |
| 451 | { |
| 452 | if (m_screenshotMode) |
| 453 | return; |
| 454 | |
| 455 | if (IsLeftButton(QGuiApplication::mouseButtons()) && e->key() == Qt::Key_Control) |
| 456 | { |
| 457 | df::TouchEvent event; |
| 458 | event.SetTouchType(df::TouchEvent::TOUCH_UP); |
| 459 | df::Touch touch; |
| 460 | touch.m_id = 0; |
| 461 | touch.m_location = m2::PointD(L2D(QCursor::pos().x()), L2D(QCursor::pos().y())); |
| 462 | event.SetFirstTouch(touch); |
| 463 | event.SetSecondTouch(GetSymmetrical(touch)); |
| 464 | |
| 465 | m_framework.TouchEvent(event); |
| 466 | } |
| 467 | else if (e->key() == Qt::Key_Alt) |
| 468 | m_emulatingLocation = false; |
| 469 | } |
| 470 | |
| 471 | std::string DrawWidget::GetDistance(search::Result const & res) const |
| 472 | { |
nothing calls this directly
no test coverage detected