| 675 | |
| 676 | |
| 677 | QRectF AzimuthInfoHelper::dirtyRect(MapWidget* widget, const MapCoordF& pos_map) const |
| 678 | { |
| 679 | auto map_rect = QRectF{widget->viewportToMapF(display_rect.topLeft()), |
| 680 | widget->viewportToMapF(display_rect.bottomRight())}; |
| 681 | return map_rect.translated(pos_map - map_rect.center()); |
| 682 | } |
| 683 | |
| 684 | |
| 685 | void AzimuthInfoHelper::draw(QPainter* painter, const MapWidget* widget, const Map* map, const MapCoordF& start_pos, const MapCoordF& end_pos) |
no test coverage detected