mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-31 09:05:14 +01:00
Added missing units type setup for new items
This commit is contained in:
parent
f0a1acb96a
commit
e0ad64a902
@ -98,6 +98,7 @@ PathItem *PathView::addTrack(const Track &track)
|
|||||||
ti->setColor(_palette.nextColor());
|
ti->setColor(_palette.nextColor());
|
||||||
ti->setWidth(_trackWidth);
|
ti->setWidth(_trackWidth);
|
||||||
ti->setStyle(_trackStyle);
|
ti->setStyle(_trackStyle);
|
||||||
|
ti->setUnits(_units);
|
||||||
ti->setVisible(_showTracks);
|
ti->setVisible(_showTracks);
|
||||||
ti->setDigitalZoom(_digitalZoom);
|
ti->setDigitalZoom(_digitalZoom);
|
||||||
_scene->addItem(ti);
|
_scene->addItem(ti);
|
||||||
@ -120,6 +121,7 @@ PathItem *PathView::addRoute(const Route &route)
|
|||||||
ri->setColor(_palette.nextColor());
|
ri->setColor(_palette.nextColor());
|
||||||
ri->setWidth(_routeWidth);
|
ri->setWidth(_routeWidth);
|
||||||
ri->setStyle(_routeStyle);
|
ri->setStyle(_routeStyle);
|
||||||
|
ri->setUnits(_units);
|
||||||
ri->setVisible(_showRoutes);
|
ri->setVisible(_showRoutes);
|
||||||
ri->showWaypoints(_showRouteWaypoints);
|
ri->showWaypoints(_showRouteWaypoints);
|
||||||
ri->showWaypointLabels(_showWaypointLabels);
|
ri->showWaypointLabels(_showWaypointLabels);
|
||||||
@ -142,6 +144,7 @@ void PathView::addWaypoints(const QList<Waypoint> &waypoints)
|
|||||||
updateWaypointsBoundingRect(QPointF(c.lon(), c.lat()));
|
updateWaypointsBoundingRect(QPointF(c.lon(), c.lat()));
|
||||||
wi->setZValue(1);
|
wi->setZValue(1);
|
||||||
wi->showLabel(_showWaypointLabels);
|
wi->showLabel(_showWaypointLabels);
|
||||||
|
wi->setUnits(_units);
|
||||||
wi->setVisible(_showWaypoints);
|
wi->setVisible(_showWaypoints);
|
||||||
wi->setDigitalZoom(_digitalZoom);
|
wi->setDigitalZoom(_digitalZoom);
|
||||||
_scene->addItem(wi);
|
_scene->addItem(wi);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user