Fixed issue #415. Line appears between the point and mark in the detail mode
--HG-- branch : feature
This commit is contained in:
parent
0e60b20ace
commit
d057d336f7
|
@ -278,7 +278,10 @@ void VNodePoint::RefreshPointGeometry(const VPointF &point)
|
|||
* @brief RefreshLine refresh label line on scene.
|
||||
*/
|
||||
void VNodePoint::RefreshLine()
|
||||
{
|
||||
{ QRectF nRec = namePoint->sceneBoundingRect();
|
||||
nRec.translate(- scenePos());
|
||||
if (this->rect().intersects(nRec) == false)
|
||||
{
|
||||
QRectF nameRec = namePoint->sceneBoundingRect();
|
||||
QPointF p1, p2;
|
||||
VGObject::LineIntersectCircle(QPointF(), radius, QLineF(QPointF(), nameRec.center()- scenePos()), p1, p2);
|
||||
|
@ -292,4 +295,9 @@ void VNodePoint::RefreshLine()
|
|||
{
|
||||
lineName->setVisible(true);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lineName->setVisible(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user