Fix draw artifacts.
This commit is contained in:
parent
8b402dc1d9
commit
c8fe11c291
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user