1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Fixed wrong data type

This commit is contained in:
Martin Tůma 2018-03-10 08:40:55 +01:00
parent 67aba4703b
commit a8bc2ae4c4
2 changed files with 4 additions and 4 deletions

View File

@ -168,7 +168,7 @@ void MapView::addWaypoints(const QList<Waypoint> &waypoints)
QList<PathItem *> MapView::loadData(const Data &data)
{
QList<PathItem *> paths;
qreal zoom = _map->zoom();
int zoom = _map->zoom();
for (int i = 0; i < data.tracks().count(); i++)
paths.append(addTrack(*(data.tracks().at(i))));
@ -189,7 +189,7 @@ QList<PathItem *> MapView::loadData(const Data &data)
return paths;
}
qreal MapView::mapZoom() const
int MapView::mapZoom() const
{
RectC br = _tr | _rr | _wr;
@ -765,7 +765,7 @@ void MapView::resizeEvent(QResizeEvent *event)
{
QGraphicsView::resizeEvent(event);
qreal zoom = _map->zoom();
int zoom = _map->zoom();
if (mapZoom() != zoom)
rescale();

View File

@ -80,7 +80,7 @@ private:
void loadPOI();
void clearPOI();
qreal mapZoom() const;
int mapZoom() const;
QPointF contentCenter() const;
void rescale();
void centerOn(const QPointF &pos);