Fix hover for tool point of intersection line and axis.

This commit is contained in:
Roman Telezhynskyi 2021-07-24 12:05:04 +03:00
parent 8ffc2447dd
commit 25047b329d
2 changed files with 8 additions and 0 deletions

View File

@ -359,3 +359,10 @@ QString VToolLineIntersectAxis::MakeToolTip() const
.arg(tr("Label"), current->name()); .arg(tr("Label"), current->name());
return toolTip; return toolTip;
} }
//---------------------------------------------------------------------------------------------------------------------
void VToolLineIntersectAxis::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
{
VToolLinePoint::hoverEnterEvent(event);
mainLine->SetBoldLine(false);
}

View File

@ -95,6 +95,7 @@ protected:
virtual void ReadToolAttributes(const QDomElement &domElement) override; virtual void ReadToolAttributes(const QDomElement &domElement) override;
virtual void SetVisualization() override; virtual void SetVisualization() override;
virtual QString MakeToolTip() const override; virtual QString MakeToolTip() const override;
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override;
private: private:
Q_DISABLE_COPY(VToolLineIntersectAxis) Q_DISABLE_COPY(VToolLineIntersectAxis)