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

Fixed area items hovering

This commit is contained in:
Martin Tůma 2023-02-14 00:55:19 +01:00
parent 4f661128ba
commit dec70f6bfe

View File

@ -185,7 +185,7 @@ void AreaItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
{ {
Q_UNUSED(event); Q_UNUSED(event);
_pen.setWidthF((_width + 1) * pow(2, -_digitalZoom)); _pen.setWidthF((width() + 1) * pow(2, -_digitalZoom));
update(); update();
} }
@ -193,6 +193,6 @@ void AreaItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
{ {
Q_UNUSED(event); Q_UNUSED(event);
_pen.setWidthF(_width * pow(2, -_digitalZoom)); _pen.setWidthF(width() * pow(2, -_digitalZoom));
update(); update();
} }