1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 13:41:16 +01:00

Unify zoom level calculation logic

This commit is contained in:
Martin Tůma 2017-06-25 16:25:29 +02:00
parent 9bf1447a7e
commit 4697ba4ef0

View File

@ -26,10 +26,10 @@ public:
QRectF bounds() const {return QRectF(QPointF(0, 0), _size);} QRectF bounds() const {return QRectF(QPointF(0, 0), _size);}
qreal resolution(const QPointF &) const {return _resolution;} qreal resolution(const QPointF &) const {return _resolution;}
qreal zoom() const {return 1.0;} qreal zoom() const {return 0;}
qreal zoomFit(const QSize &, const QRectF &) {return 1.0;} qreal zoomFit(const QSize &, const QRectF &) {return 0;}
qreal zoomIn() {return 1.0;} qreal zoomIn() {return 0;}
qreal zoomOut() {return 1.0;} qreal zoomOut() {return 0;}
QPointF ll2xy(const Coordinates &c) QPointF ll2xy(const Coordinates &c)
{return _transform.map(_projection->ll2xy(c));} {return _transform.map(_projection->ll2xy(c));}