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,6 +278,9 @@ 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;
|
||||
|
@ -293,3 +296,8 @@ void VNodePoint::RefreshLine()
|
|||
lineName->setVisible(true);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lineName->setVisible(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user