| 193 | |
| 194 | |
| 195 | void MapWidget::applyMapTransform(QPainter* painter) const |
| 196 | { |
| 197 | painter->translate(width() / 2.0 + getMapView()->panOffset().x(), |
| 198 | height() / 2.0 + getMapView()->panOffset().y()); |
| 199 | painter->setWorldTransform(getMapView()->worldTransform(), true); |
| 200 | } |
| 201 | |
| 202 | QRectF MapWidget::viewportToView(const QRect& input) const |
| 203 | { |