mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Better Z-value handling
This commit is contained in:
parent
1827787fc2
commit
eeed5ceba3
@ -140,7 +140,7 @@ void RouteItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
|||||||
Q_UNUSED(event);
|
Q_UNUSED(event);
|
||||||
|
|
||||||
_pen.setWidthF(HOVER_WIDTH * 1.0/scale());
|
_pen.setWidthF(HOVER_WIDTH * 1.0/scale());
|
||||||
setZValue(1.0);
|
setZValue(3.0);
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ void TrackItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
|||||||
Q_UNUSED(event);
|
Q_UNUSED(event);
|
||||||
|
|
||||||
_pen.setWidthF(HOVER_WIDTH * 1.0/scale());
|
_pen.setWidthF(HOVER_WIDTH * 1.0/scale());
|
||||||
setZValue(1.0);
|
setZValue(3.0);
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user