From dec70f6bfe5a192c36314b773d0a12248632c689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 14 Feb 2023 00:55:19 +0100 Subject: [PATCH] Fixed area items hovering --- src/GUI/areaitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GUI/areaitem.cpp b/src/GUI/areaitem.cpp index 47d8681f..d5d026cd 100644 --- a/src/GUI/areaitem.cpp +++ b/src/GUI/areaitem.cpp @@ -185,7 +185,7 @@ void AreaItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event) { Q_UNUSED(event); - _pen.setWidthF((_width + 1) * pow(2, -_digitalZoom)); + _pen.setWidthF((width() + 1) * pow(2, -_digitalZoom)); update(); } @@ -193,6 +193,6 @@ void AreaItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) { Q_UNUSED(event); - _pen.setWidthF(_width * pow(2, -_digitalZoom)); + _pen.setWidthF(width() * pow(2, -_digitalZoom)); update(); }