From 25047b329ddc8a6a5ab44d682857508598822a71 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 24 Jul 2021 12:05:04 +0300 Subject: [PATCH] Fix hover for tool point of intersection line and axis. --- .../toollinepoint/vtoollineintersectaxis.cpp | 7 +++++++ .../toolsinglepoint/toollinepoint/vtoollineintersectaxis.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.cpp index 5134682fc..5c710eca1 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.cpp @@ -359,3 +359,10 @@ QString VToolLineIntersectAxis::MakeToolTip() const .arg(tr("Label"), current->name()); return toolTip; } + +//--------------------------------------------------------------------------------------------------------------------- +void VToolLineIntersectAxis::hoverEnterEvent(QGraphicsSceneHoverEvent *event) +{ + VToolLinePoint::hoverEnterEvent(event); + mainLine->SetBoldLine(false); +} diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.h b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.h index 4e45eb5d9..c65624513 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.h +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.h @@ -95,6 +95,7 @@ protected: virtual void ReadToolAttributes(const QDomElement &domElement) override; virtual void SetVisualization() override; virtual QString MakeToolTip() const override; + virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override; private: Q_DISABLE_COPY(VToolLineIntersectAxis)