From eeed5ceba34dbdc4de0220c6294c2f37a742ba95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 11 Sep 2016 13:43:33 +0200 Subject: [PATCH] Better Z-value handling --- src/routeitem.cpp | 2 +- src/trackitem.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routeitem.cpp b/src/routeitem.cpp index 8608a3d0..fbadb618 100644 --- a/src/routeitem.cpp +++ b/src/routeitem.cpp @@ -140,7 +140,7 @@ void RouteItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event) Q_UNUSED(event); _pen.setWidthF(HOVER_WIDTH * 1.0/scale()); - setZValue(1.0); + setZValue(3.0); update(); } diff --git a/src/trackitem.cpp b/src/trackitem.cpp index 8160bf90..98fc1fda 100644 --- a/src/trackitem.cpp +++ b/src/trackitem.cpp @@ -119,7 +119,7 @@ void TrackItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event) Q_UNUSED(event); _pen.setWidthF(HOVER_WIDTH * 1.0/scale()); - setZValue(1.0); + setZValue(3.0); update(); }