Fix hover for tool point of intersection line and axis.
This commit is contained in:
parent
8ffc2447dd
commit
25047b329d
|
@ -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);
|
||||||
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user