mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
round the bullseye
This commit is contained in:
parent
9e923ff82b
commit
634386b8a4
@ -351,9 +351,9 @@ void QZint::render(QPainter & painter, const QRectF & paintRect, AspectRatioMode
|
|||||||
painter.setPen(p);
|
painter.setPen(p);
|
||||||
const qreal w=maxi_width+1;
|
const qreal w=maxi_width+1;
|
||||||
const qreal h=maxi_diagonal+1;
|
const qreal h=maxi_diagonal+1;
|
||||||
painter.drawEllipse(QPointF((qreal)m_zintSymbol->width/2*w,(qreal)m_zintSymbol->height/2*h),w,h);
|
painter.drawEllipse(QPointF((qreal)m_zintSymbol->width/2*w,(qreal)m_zintSymbol->height/2*h),w,w);
|
||||||
painter.drawEllipse(QPointF((qreal)m_zintSymbol->width/2*w,(qreal)m_zintSymbol->height/2*h),w+w*1.5,h+h*1.5);
|
painter.drawEllipse(QPointF((qreal)m_zintSymbol->width/2*w,(qreal)m_zintSymbol->height/2*h),w+w*1.5,w+w*1.5);
|
||||||
painter.drawEllipse(QPointF((qreal)m_zintSymbol->width/2*w,(qreal)m_zintSymbol->height/2*h),w+w*3,h+h*3);
|
painter.drawEllipse(QPointF((qreal)m_zintSymbol->width/2*w,(qreal)m_zintSymbol->height/2*h),w+w*3,w+w*3);
|
||||||
painter.restore();
|
painter.restore();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user