1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Map API cleanup

This commit is contained in:
Martin Tůma 2018-09-10 21:22:57 +02:00
parent 70222f4ae2
commit d58322b412
2 changed files with 6 additions and 13 deletions

View File

@ -18,13 +18,6 @@ public:
QString name() const;
QRectF bounds();
int zoom() const {return 0;}
void setZoom(int) {}
int zoomFit(const QSize &, const RectC &) {return 0;}
int zoomIn() {return 0;}
int zoomOut() {return 0;}
QPointF ll2xy(const Coordinates &c);
Coordinates xy2ll(const QPointF &p);

View File

@ -30,11 +30,11 @@ public:
virtual QRectF bounds() = 0;
virtual qreal resolution(const QRectF &rect);
virtual int zoom() const = 0;
virtual void setZoom(int zoom) = 0;
virtual int zoomFit(const QSize &size, const RectC &rect) = 0;
virtual int zoomIn() = 0;
virtual int zoomOut() = 0;
virtual int zoom() const {return 0;}
virtual void setZoom(int) {}
virtual int zoomFit(const QSize &, const RectC &) {return 0;}
virtual int zoomIn() {return 0;}
virtual int zoomOut() {return 0;}
virtual QPointF ll2xy(const Coordinates &c) = 0;
virtual Coordinates xy2ll(const QPointF &p) = 0;
@ -44,7 +44,7 @@ public:
virtual void clearCache() {}
virtual void load() {}
virtual void unload() {}
virtual void setDevicePixelRatio(qreal ratio) {Q_UNUSED(ratio);}
virtual void setDevicePixelRatio(qreal) {}
virtual bool isValid() const {return true;}
virtual QString errorString() const {return QString();}