Fix hover for tool point of intersection curve and axis.

This commit is contained in:
Roman Telezhynskyi 2021-07-24 16:26:42 +03:00
parent 8656e9f633
commit 6c5c4f671b
2 changed files with 8 additions and 0 deletions

View File

@ -355,6 +355,13 @@ QString VToolCurveIntersectAxis::MakeToolTip() const
return toolTip; return toolTip;
} }
//---------------------------------------------------------------------------------------------------------------------
void VToolCurveIntersectAxis::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
{
VToolLinePoint::hoverEnterEvent(event);
mainLine->SetBoldLine(false);
}
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VToolCurveIntersectAxis::SetSegments(const QPair<QString, QString> &segments) void VToolCurveIntersectAxis::SetSegments(const QPair<QString, QString> &segments)
{ {

View File

@ -89,6 +89,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 auto MakeToolTip() const -> QString override; virtual auto MakeToolTip() const -> QString override;
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override;
void SetSegments(const QPair<QString, QString> &segments); void SetSegments(const QPair<QString, QString> &segments);
private: private: