Fix draw artifacts.

This commit is contained in:
Roman Telezhynskyi 2023-11-17 09:31:31 +02:00
parent 8b402dc1d9
commit c8fe11c291
2 changed files with 15 additions and 0 deletions

View File

@ -120,6 +120,20 @@ void VScenePoint::RefreshPointGeometry(const VPointF &point)
RefreshLine();
}
//---------------------------------------------------------------------------------------------------------------------
auto VScenePoint::boundingRect() const -> QRectF
{
QRectF rect = QGraphicsEllipseItem::boundingRect();
VCommonSettings *settings = VAbstractApplication::VApp()->Settings();
if (settings->GetShowAccuracyRadius())
{
rect = rect.united(PointRect(accuracyPointOnLine));
}
return rect;
}
//---------------------------------------------------------------------------------------------------------------------
void VScenePoint::SetOnlyPoint(bool value)
{

View File

@ -53,6 +53,7 @@ public:
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override;
virtual void RefreshPointGeometry(const VPointF &point);
auto boundingRect() const -> QRectF override;
void RefreshLine();